]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] use modern name -Wextra instead of -W
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 16 Jan 2020 14:36:53 +0000 (15:36 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Thu, 16 Jan 2020 18:37:12 +0000 (19:37 +0100)
cmake/CompilerWarnings.cmake

index a9797f539c94ac7110aaa3eaf66f734baadeea14..b9bb7ffde2350397515c88cf49a8f1aa117839d5 100644 (file)
@@ -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)