mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 23:05:38 +00:00
Add -Wmissing-prototypes to clang's check mode too
This commit is contained in:
parent
bee8ded03a
commit
10a3891336
|
@ -19,7 +19,7 @@ if(CMAKE_COMPILER_IS_CLANG)
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
|
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
|
||||||
set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 --coverage")
|
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_ASAN "-fsanitize=address -fno-omit-frame-pointer -g3 -O1")
|
||||||
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -O1 -Wpointer-arith -Wwrite-strings -Wdocumentation -Wunreachable-code")
|
set(CMAKE_C_FLAGS_CHECK "${CMAKE_C_FLAGS} -Werror -O1 -Wpointer-arith -Wwrite-strings -Wdocumentation -Wunreachable-code -Wmissing-prototypes")
|
||||||
endif(CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
||||||
|
|
Loading…
Reference in a new issue