summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-08-07 23:46:16 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-08-07 23:46:16 +0200
commit009bd798b51d25d1b7f0dc7629fe7350eff9cf73 (patch)
tree990e81b1048e03f03d214cae2c2fef9a1c9949ed /CMakeLists.txt
parent79202253347bf8f93103050ab00380ed8e38d90f (diff)
downloadtcpdump-009bd798b51d25d1b7f0dc7629fe7350eff9cf73.tar.gz
Add '-Wunreachable-code-return' warning option in devel mode for cmake
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 6010e7dd..9db60947 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -873,6 +873,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
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(-Wunreachable-code-return)
check_and_add_compiler_option(-Wused-but-marked-unused)
check_and_add_compiler_option(-Wwrite-strings)
endif()