feat(test): enable warning to format-security (#6199)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu 2024-05-09 13:59:06 +08:00 committed by GitHub
parent dfe50c5952
commit 2afbfc451c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,6 +145,7 @@ if(NOT (CMAKE_C_COMPILER_ID STREQUAL "MSVC"))
list(APPEND COMPILE_OPTIONS
-pedantic-errors
-Wall
-Wformat-security
-Wclobbered
-Wdeprecated
-Wdouble-promotion