From: Francois-Xavier Le Bail Date: Tue, 7 Aug 2018 21:36:44 +0000 (+0200) Subject: Sort the tested compiler warning options for cmake X-Git-Tag: tcpdump-4.99-bp~1066 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/79202253347bf8f93103050ab00380ed8e38d90f Sort the tested compiler warning options for cmake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 05b4e196..6010e7dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()