aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2014-02-24 10:49:27 +0100
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2014-02-24 10:49:27 +0100
commite8bac683c2dade7dad3d33daab8e84729dbccf4a (patch)
treee0ddefeb6d626c778e0b8345f9e6c8d88b3f4056 /CMakeLists.txt
parent2a2ae642d8815bd0ca3e4155aa07a86cee060c5b (diff)
downloadmbedtls-e8bac683c2dade7dad3d33daab8e84729dbccf4a.zip
mbedtls-e8bac683c2dade7dad3d33daab8e84729dbccf4a.tar.gz
mbedtls-e8bac683c2dade7dad3d33daab8e84729dbccf4a.tar.bz2
Add -Wunreachable-code to check mode
See eg https://www.imperialviolet.org/2014/02/22/applebug.html
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4b012c..26fd972 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,7 @@ if(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 --coverage")
set(CMAKE_C_FLAGS_ASAN "-fsanitize=address -fno-omit-frame-pointer -g3 -O1")
- set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation")
+ set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation -Wunreachable-code")
endif(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}