Skip to content

Commit 76ad62e

Browse files
fix additional warning
1 parent 9c1849b commit 76ad62e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) AND BUILD_TESTING)
204204
-Wdouble-promotion
205205
-Wno-sign-compare
206206
-Wextra-semi
207-
# -Wzero-as-null-pointer-constant
207+
-Wzero-as-null-pointer-constant
208208
-Wundef)
209209
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
210210
target_compile_options(htool INTERFACE -Wimplicit-fallthrough -Wextra-semi-stmt -ferror-limit=200)

include/htool/hmatrix/hmatrix_distributed_output.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void print_distributed_hmatrix_information(const HMatrix<CoefficientPrecision, C
203203
if (rankWorld == 0) {
204204
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();
205205
// save default formatting
206-
std::ios init(NULL);
206+
std::ios init(nullptr);
207207
init.copyfmt(os);
208208

209209
os << std::setfill('_') << std::left;

include/htool/hmatrix/hmatrix_output.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void print_tree_parameters(const HMatrix<CoefficientPrecision, CoordinatePrecisi
105105
int output_size = 23;
106106

107107
// save default formatting
108-
std::ios init(NULL);
108+
std::ios init(nullptr);
109109
init.copyfmt(os);
110110

111111
os << std::setfill('_') << std::left;
@@ -227,7 +227,7 @@ void print_hmatrix_information(const HMatrix<CoefficientPrecision, CoordinatePre
227227
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();
228228

229229
// save default formatting
230-
std::ios init(NULL);
230+
std::ios init(nullptr);
231231
init.copyfmt(os);
232232

233233
os << std::setfill('_') << std::left;

0 commit comments

Comments
 (0)