gtest-mpi-listener icon indicating copy to clipboard operation
gtest-mpi-listener copied to clipboard

Uninitialized variables with -DNDEBUG

Open yasushi-saito opened this issue 5 years ago • 0 comments

bazel-out/k8-opt/bin/external/gtest_mpi_listener/gtest_mpi_listener.h:108:10: warning: variable 'is_mpi_initialized' is uninitialized when used here [-Wuninitialized] if (!is_mpi_initialized) { ^~~~~~~~~~~~~~~~~~ bazel-out/k8-opt/bin/external/gtest_mpi_listener/gtest_mpi_listener.h:106:27: note: initialize the variable 'is_mpi_initialized' to silence this warning int is_mpi_initialized; ^ = 0

We need to stop using asserts.

yasushi-saito avatar Apr 07 '20 19:04 yasushi-saito