Disable -Wunused-result in programs and tests

This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-10 17:28:58 +02:00
parent a1e6ba6477
commit 121f7c9475
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
endif(CMAKE_COMPILER_IS_GNUCC)
add_subdirectory(aes) add_subdirectory(aes)
add_subdirectory(hash) add_subdirectory(hash)
add_subdirectory(pkey) add_subdirectory(pkey)

View File

@ -29,7 +29,7 @@ function(add_test_suite suite_name)
add_test(${data_name}-suite test_suite_${data_name}) add_test(${data_name}-suite test_suite_${data_name})
endfunction(add_test_suite) endfunction(add_test_suite)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function -Wno-unused-result")
add_test_suite(aes aes.ecb) add_test_suite(aes aes.ecb)
add_test_suite(aes aes.cbc) add_test_suite(aes aes.cbc)