aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-12-02 22:45:00 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-12-02 22:45:00 +0000
commit9b6dca07cecd12e55b94d7f86dafdfa6fbf8c32a (patch)
tree73a91aeb33c48d21d0c8f210e61cfac18530ace9 /cmake
parenta698357f23c08c6aebcd8210d61c4b664fbc4c18 (diff)
downloadrspamd-9b6dca07cecd12e55b94d7f86dafdfa6fbf8c32a.tar.gz
rspamd-9b6dca07cecd12e55b94d7f86dafdfa6fbf8c32a.zip
[Minor] Remove -Weffc++ flag by default
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Toolset.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake
index 7bf4b60b4..ae5a8d020 100644
--- a/cmake/Toolset.cmake
+++ b/cmake/Toolset.cmake
@@ -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}")