From: Francois-Xavier Le Bail Date: Tue, 30 Oct 2018 20:33:24 +0000 (+0100) Subject: Compile with -Wsign-compare in devel mode if supported (cmake) X-Git-Tag: tcpdump-4.99-bp~973 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/cb36ac604ea43df523dbf9c2f9f1379bd0d1e319 Compile with -Wsign-compare in devel mode if supported (cmake) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 93592c3c..b0b9afaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -871,6 +871,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel) check_and_add_compiler_option(-Wpedantic) check_and_add_compiler_option(-Wpointer-arith) check_and_add_compiler_option(-Wshadow) + check_and_add_compiler_option(-Wsign-compare) check_and_add_compiler_option(-Wstrict-prototypes) check_and_add_compiler_option(-Wunreachable-code-return) check_and_add_compiler_option(-Wused-but-marked-unused)