]> The Tcpdump Group git mirrors - tcpdump/blobdiff - CMakeLists.txt
Compile with -Wsign-compare in devel mode if supported (cmake)
[tcpdump] / 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)