Add -Wunreachable-code to check mode

See eg https://www.imperialviolet.org/2014/02/22/applebug.html
This commit is contained in:
Manuel Pégourié-Gonnard 2014-02-24 10:49:27 +01:00
parent 2a2ae642d8
commit e8bac683c2
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,9 @@ endfunction(add_test_suite)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function -Wno-unused-value")
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS_CHECK} -Wno-unused-function -Wno-unused-value")
if(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS_CHECK} -Wno-unreachable-code")
endif(CMAKE_COMPILER_IS_CLANG)
add_test_suite(aes aes.ecb)
add_test_suite(aes aes.cbc)