Skip to content

Commit

Permalink
fix additional warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Jul 31, 2024
1 parent 9c1849b commit 76ad62e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) AND BUILD_TESTING)
-Wdouble-promotion
-Wno-sign-compare
-Wextra-semi
# -Wzero-as-null-pointer-constant
-Wzero-as-null-pointer-constant
-Wundef)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(htool INTERFACE -Wimplicit-fallthrough -Wextra-semi-stmt -ferror-limit=200)
Expand Down
2 changes: 1 addition & 1 deletion include/htool/hmatrix/hmatrix_distributed_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void print_distributed_hmatrix_information(const HMatrix<CoefficientPrecision, C
if (rankWorld == 0) {
std::size_t output_size = 2 + std::max_element(std::begin(distributed_information), std::end(distributed_information), [](const auto &a, const auto &b) { return a.first.size() < b.first.size(); })->first.size();
// save default formatting
std::ios init(NULL);
std::ios init(nullptr);
init.copyfmt(os);

os << std::setfill('_') << std::left;
Expand Down
4 changes: 2 additions & 2 deletions include/htool/hmatrix/hmatrix_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void print_tree_parameters(const HMatrix<CoefficientPrecision, CoordinatePrecisi
int output_size = 23;

// save default formatting
std::ios init(NULL);
std::ios init(nullptr);
init.copyfmt(os);

os << std::setfill('_') << std::left;
Expand Down Expand Up @@ -227,7 +227,7 @@ void print_hmatrix_information(const HMatrix<CoefficientPrecision, CoordinatePre
std::size_t output_size = 2 + std::max_element(std::begin(hmatrix_information), std::end(hmatrix_information), [](const auto &a, const auto &b) { return a.first.size() < b.first.size(); })->first.size();

// save default formatting
std::ios init(NULL);
std::ios init(nullptr);
init.copyfmt(os);

os << std::setfill('_') << std::left;
Expand Down

0 comments on commit 76ad62e

Please sign in to comment.