From 009bd798b51d25d1b7f0dc7629fe7350eff9cf73 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 7 Aug 2018 23:46:16 +0200 Subject: [PATCH] Add '-Wunreachable-code-return' warning option in devel mode for cmake --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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() -- 2.39.5