Skip to content

Commit 0a96edc

Browse files
committed
Disable stringop-overflow warning in GCC regardless of compiler version, because it produces false positives in the old versions too.
1 parent fb362f1 commit 0a96edc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CMake/TdSetUpCompiler.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function(td_set_up_compiler)
154154
# see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1579
155155
add_cxx_compiler_flag("-Wno-redundant-move")
156156
endif()
157-
if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0))
157+
if (GCC)
158158
add_cxx_compiler_flag("-Wno-stringop-overflow") # some false positives
159159
endif()
160160
if (CLANG AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5))

0 commit comments

Comments
 (0)