diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-01-16 15:36:53 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-01-16 19:37:12 +0100 |
commit | e98f08c797a2159d6f6c328a2a3c680a44c743f0 (patch) | |
tree | 8260fbd1b1d98785dea31dee4366ac25cf44972a | |
parent | d1410ad779dce6fa65ae3c296044551165d355b3 (diff) | |
download | rspamd-e98f08c797a2159d6f6c328a2a3c680a44c743f0.tar.gz rspamd-e98f08c797a2159d6f6c328a2a3c680a44c743f0.zip |
[Minor] use modern name -Wextra instead of -W
-rw-r--r-- | cmake/CompilerWarnings.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index a9797f539..b9bb7ffde 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -1,5 +1,5 @@ CHECK_C_COMPILER_FLAG(-Wall SUPPORT_WALL) -CHECK_C_COMPILER_FLAG(-W SUPPORT_W) +CHECK_C_COMPILER_FLAG(-Wextra SUPPORT_WEXTRA) CHECK_C_COMPILER_FLAG(-Wpointer-arith SUPPORT_WPOINTER) CHECK_C_COMPILER_FLAG(-Wno-unused-parameter SUPPORT_WPARAM) CHECK_C_COMPILER_FLAG(-Wno-unused-function SUPPORT_WFUNCTION) @@ -16,9 +16,9 @@ CHECK_C_COMPILER_FLAG(-Wduplicated-cond SUPPORT_WDUPLICATED_COND) # GCC 7 specific CHECK_C_COMPILER_FLAG(-Wimplicit-fallthrough SUPPORT_WIMPLICIT_FALLTHROUGH) -IF(SUPPORT_W) - ADD_COMPILE_OPTIONS("-W") -ENDIF(SUPPORT_W) +IF(SUPPORT_WEXTRA) + ADD_COMPILE_OPTIONS("-Wextra") +ENDIF(SUPPORT_WEXTRA) IF(SUPPORT_WALL) ADD_COMPILE_OPTIONS("-Wall") ENDIF(SUPPORT_WALL) @@ -69,4 +69,4 @@ ENDIF(SUPPORT_WIMPLICIT_FALLTHROUGH) CHECK_C_COMPILER_FLAG(-fPIC SUPPORT_FPIC) IF(SUPPORT_FPIC) ADD_COMPILE_OPTIONS("-fPIC") -ENDIF(SUPPORT_FPIC)
\ No newline at end of file +ENDIF(SUPPORT_FPIC) |