From: Francois-Xavier Le Bail Date: Tue, 7 Aug 2018 21:46:16 +0000 (+0200) Subject: Add '-Wunreachable-code-return' warning option in devel mode for cmake X-Git-Tag: tcpdump-4.99-bp~1065 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/009bd798b51d25d1b7f0dc7629fe7350eff9cf73 Add '-Wunreachable-code-return' warning option in devel mode for cmake --- 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()