Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation for gcc 9.2.0 + different warnings #196

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

vasdommes
Copy link
Collaborator

No description provided.

…st in SDP

Otherwise, we get obscure rapidjson error when reading an empty stream.
This caused compiler warning on gcc 9.2.0 (Caltech HPC):
../src/sdpb_util/json/Abstract_Json_Reader_Handler.hxx:54:27: warning: attribute ignored [-Wattributes]
…or on gcc 9.2.0 (Caltech HPC)

../src/sdp_solve/SDP/SDP/read_block_data/Json_Block_Data_Parser.hxx: In member function ‘virtual Block_Data_Parse_Result Json_Block_Data_Parser::get_result()’:
../src/sdp_solve/SDP/SDP/read_block_data/Json_Block_Data_Parser.hxx:24:74: error: use of deleted function ‘Block_Data_Parse_Result::Block_Data_Parse_Result(Block_Data_Parse_Result&&)’
   24 |   Block_Data_Parse_Result get_result() override { return std::move(result); }
      |                                                                          ^
In file included from ../src/sdp_solve/SDP/SDP/read_block_data/Json_Block_Data_Parser.hxx:3,
                 from ../src/sdp_solve/SDP/SDP/read_block_data/SDP_Block_Data.cxx:3:
../src/sdp_solve/SDP/SDP/read_block_data/Block_Data_Parse_Result.hxx:27:3: note: ‘Block_Data_Parse_Result::Block_Data_Parse_Result(Block_Data_Parse_Result&&) noexcept’ is implicitly deleted because its exception-specification does not match the implicit exception-specification ‘’
   27 |   Block_Data_Parse_Result(Block_Data_Parse_Result &&other) noexcept = default;
      |   ^~~~~~~~~~~~~~~~~~~~~~~                                           ^
…ttribute applied to <...> with void return type [-Wattributes]"

../src/pmp/Polynomial_Matrix_Program.hxx:33:17: warning: ‘nodiscard’ attribute applied to ‘Polynomial_Matrix_Program::Polynomial_Matrix_Program(std::vector<El::BigFloat, std::allocator<El::BigFloat> >, std::optional<std::vector<El::BigFloat, std::allocator<El::BigFloat> > >, size_t, std::vector<Polynomial_Vector_Matrix>, std::vector<long unsigned int>, std::vector<std::filesystem::__cxx11::path>)’ with void return type [-Wattributes]
…g: throw will always call terminate() [-Wterminate]
@vasdommes vasdommes added this to the 2.7.0 milestone Feb 8, 2024
@vasdommes vasdommes merged commit 7229874 into master Feb 8, 2024
2 checks passed
@vasdommes vasdommes deleted the fix-compilation-etc branch February 8, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant