summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-07-13 11:38:48 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-07-13 11:38:48 +0200
commita602436cc2e62fd49c9d1af84367d4fc25b920c6 (patch)
tree33e0597a03d405562759547c644080c66912350d /CMakeLists.txt
parent8c8d5ecba44077f742b614a6b7681338f80da305 (diff)
downloadtcpdump-a602436cc2e62fd49c9d1af84367d4fc25b920c6.tar.gz
Use -Wpointer-sign if it's available
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d93ede27..08d2d249 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -909,6 +909,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
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(-Wpointer-sign)
check_and_add_compiler_option(-Wshadow)
check_and_add_compiler_option(-Wsign-compare)
check_and_add_compiler_option(-Wstrict-prototypes)