]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove -Weffc++ flag by default
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 2 Dec 2022 22:45:00 +0000 (22:45 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 2 Dec 2022 22:45:00 +0000 (22:45 +0000)
cmake/Toolset.cmake

index 7bf4b60b488a10cc13ca704ca629f6501b7d24ca..ae5a8d020a67be9cc7116bb2b09a5d4b5150bc4c 100644 (file)
@@ -142,7 +142,7 @@ set(CMAKE_CXX_FLAGS_COVERAGE           "${CMAKE_CXX_FLAGS} -O1 --coverage -fno-i
 if (COMPILER_GCC)
     # GCC flags
     set (COMPILER_DEBUG_FLAGS "-g -ggdb -g3 -ggdb3")
-    set (CXX_COMMON_FLAGS "-Weffc++")
+    set (CXX_COMMON_FLAGS "")
     set (CMAKE_C_FLAGS_RELWITHDEBINFO      "${CMAKE_C_FLAGS_RELEASE} -O2 ${COMPILER_FAST_MATH} ${COMPILER_DEBUG_FLAGS}")
     set (CMAKE_CXX_FLAGS_RELWITHDEBINFO    "${CMAKE_CXX_FLAGS_RELEASE} -O2 ${COMPILER_FAST_MATH} ${COMPILER_DEBUG_FLAGS} ${CXX_COMMON_FLAGS}")
 
@@ -167,7 +167,7 @@ if (COMPILER_GCC)
 elseif (COMPILER_CLANG)
     # Clang flags
     set (COMPILER_DEBUG_FLAGS "-g -glldb -gdwarf-aranges -gdwarf-4")
-    set (CXX_COMMON_FLAGS "-Weffc++")
+    set (CXX_COMMON_FLAGS "")
     set (CMAKE_C_FLAGS_RELEASE         "${CMAKE_C_FLAGS_RELEASE} -O2 -fomit-frame-pointer ${COMPILER_FAST_MATH}")
     set (CMAKE_CXX_FLAGS_RELEASE       "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer ${COMPILER_FAST_MATH} ${CXX_COMMON_FLAGS}")