diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-08-07 23:36:44 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-08-07 23:36:44 +0200 |
commit | 79202253347bf8f93103050ab00380ed8e38d90f (patch) | |
tree | 3cc1af47a1f22c7dad63e2e45abf6d0ffade927c /CMakeLists.txt | |
parent | 34b59a80119cc4e1b46a48b36bc0ece11d09a19c (diff) | |
download | tcpdump-79202253347bf8f93103050ab00380ed8e38d90f.tar.gz |
Sort the tested compiler warning options for cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
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() |