mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 08:55:42 +00:00
Fix "check" mode warnings
This commit is contained in:
parent
027a7cb800
commit
8505d50d4b
|
@ -16,7 +16,7 @@ endif(CMAKE_COMPILER_IS_GNUCC)
|
||||||
if(CMAKE_COMPILER_IS_CLANG)
|
if(CMAKE_COMPILER_IS_CLANG)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall -Wextra -W -Wdeclaration-after-statement")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall -Wextra -W -Wdeclaration-after-statement")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
|
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
|
||||||
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation -Wno-unused-function")
|
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -Wpointer-arith -Wwrite-strings -Wdocumentation")
|
||||||
endif(CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
||||||
|
|
|
@ -30,6 +30,7 @@ function(add_test_suite suite_name)
|
||||||
endfunction(add_test_suite)
|
endfunction(add_test_suite)
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function -Wno-unused-value")
|
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")
|
||||||
|
|
||||||
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 a new issue