mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-13 21:59:57 +00:00
Build tests with -Wdocumentation when using Clang
Signed-off-by: Gilles Peskine <[email protected]> Signed-off-by: TRodziewicz <[email protected]>
This commit is contained in:
committed by
TRodziewicz
parent
c4caba3982
commit
1cdda3e179
@@ -67,6 +67,10 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
|
||||||
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
|
if(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wdocumentation -Wno-documentation-deprecated-sync -Wunreachable-code")
|
||||||
|
endif(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# If a warning level has been defined, suppress all warnings for test code
|
# If a warning level has been defined, suppress all warnings for test code
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0")
|
||||||
|
|||||||
Reference in New Issue
Block a user