]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Sort the tested compiler warning options for cmake
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 21:36:44 +0000 (23:36 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 21:36:44 +0000 (23:36 +0200)
CMakeLists.txt

index 05b4e19611ab834f09953f28d6c50e1e8b838188..6010e7dd6c07965ab813d33432ca848b75e1b1f5 100644 (file)
@@ -862,19 +862,19 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
         # Microsoft's code generator.  We currently treat them as if
         # they might support GCC-style -W options.
         #
+        check_and_add_compiler_option(-W)
         check_and_add_compiler_option(-Wall)
-        check_and_add_compiler_option(-Wmissing-prototypes)
-        check_and_add_compiler_option(-Wstrict-prototypes)
-        check_and_add_compiler_option(-Wwrite-strings)
-        check_and_add_compiler_option(-Wpointer-arith)
+        check_and_add_compiler_option(-Wassign-enum)
         check_and_add_compiler_option(-Wcast-qual)
-        check_and_add_compiler_option(-Wshadow)
         check_and_add_compiler_option(-Wdeclaration-after-statement)
-        check_and_add_compiler_option(-Wpedantic)
+        check_and_add_compiler_option(-Wmissing-prototypes)
         check_and_add_compiler_option(-Wold-style-definition)
+        check_and_add_compiler_option(-Wpedantic)
+        check_and_add_compiler_option(-Wpointer-arith)
+        check_and_add_compiler_option(-Wshadow)
+        check_and_add_compiler_option(-Wstrict-prototypes)
         check_and_add_compiler_option(-Wused-but-marked-unused)
-        check_and_add_compiler_option(-W)
-        check_and_add_compiler_option(-Wassign-enum)
+        check_and_add_compiler_option(-Wwrite-strings)
     endif()
 endif()