mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:15:40 +00:00
Reduce level of -Wformat-truncation
Reduce level of format truncation warnings due to issues with false positives (an unknown size buffer is always treated as size 1) Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
29b641688d
commit
2065a8d8af
|
@ -198,7 +198,7 @@ if(CMAKE_COMPILER_IS_GNU)
|
|||
endif()
|
||||
endif()
|
||||
if (GCC_VERSION VERSION_GREATER 7.0 OR GCC_VERSION VERSION_EQUAL 7.0)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation")
|
||||
endif()
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O2")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3")
|
||||
|
|
Loading…
Reference in a new issue