aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-04-10 14:00:37 +0300
committerlevlam <levlam@telegram.org>2025-04-10 14:00:37 +0300
commit0a96edcf317dbf6880ce3bc8a5c4ac7b98239dd0 (patch)
treee8acc83e29e79fec977112480a7d9d2cfe262b57
parentfb362f1dd6edaec2fd9d039152c225810b06c60c (diff)
Disable stringop-overflow warning in GCC regardless of compiler version, because it produces false positives in the old versions too.
-rw-r--r--CMake/TdSetUpCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake
index a1937c2eb..1ffc24815 100644
--- a/CMake/TdSetUpCompiler.cmake
+++ b/CMake/TdSetUpCompiler.cmake
@@ -154,7 +154,7 @@ function(td_set_up_compiler)
# see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1579
add_cxx_compiler_flag("-Wno-redundant-move")
endif()
- if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0))
+ if (GCC)
add_cxx_compiler_flag("-Wno-stringop-overflow") # some false positives
endif()
if (CLANG AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5))