Disable maybe-uninitialized warnings also for old GCC versions.

This commit is contained in:
levlam 2023-07-29 17:12:58 +03:00
parent 564cbc0345
commit 0298f53081

View File

@ -136,7 +136,7 @@ function(td_set_up_compiler)
# add_cxx_compiler_flag("-Wzero-as-null-pointer-constant") # add_cxx_compiler_flag("-Wzero-as-null-pointer-constant")
endif() 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 add_cxx_compiler_flag("-Wno-maybe-uninitialized") # too many false positives
endif() endif()
if (WIN32 AND GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)) if (WIN32 AND GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0))