]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Compile with -Wsign-compare in devel mode if supported (cmake)
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Oct 2018 20:33:24 +0000 (21:33 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Oct 2018 20:33:51 +0000 (21:33 +0100)
CMakeLists.txt

index 93592c3c9426c091a680049da2d49ee65ffdc11a..b0b9afaf224c432ce941846bb889bfb3d325cd65 100644 (file)
@@ -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)