]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add '-Wunreachable-code-return' warning option in devel mode for cmake
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 21:46:16 +0000 (23:46 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 21:46:16 +0000 (23:46 +0200)
CMakeLists.txt

index 6010e7dd6c07965ab813d33432ca848b75e1b1f5..9db6094762e6b94a35343694bcfda6300000e4c2 100644 (file)
@@ -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()