Skip to content

Commit

Permalink
Disable maybe-uninitialized warnings also for old GCC versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 29, 2023
1 parent 564cbc0 commit 0298f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/TdSetUpCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function(td_set_up_compiler)
# add_cxx_compiler_flag("-Wzero-as-null-pointer-constant")
endif()

if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
if (GCC)
add_cxx_compiler_flag("-Wno-maybe-uninitialized") # too many false positives
endif()
if (WIN32 AND GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0))
Expand Down

0 comments on commit 0298f53

Please sign in to comment.