mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-01 22:14:24 +01:00
Disable -Wunused-result in programs and tests
This commit is contained in:
parent
a1e6ba6477
commit
121f7c9475
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user