[build] add printf literal string format checks for va_list functions (#12236)

This commit introduces enhanced format string checking. It activates a
new compiler warning to identify potential issues with non-literal
format strings and systematically applies format attribute macros to
functions that handle variable arguments.
This commit is contained in:
Yakun Xu
2025-12-24 11:31:08 +08:00
committed by GitHub
parent 4c152b91aa
commit 40e693762d
10 changed files with 26 additions and 17 deletions
+1
View File
@@ -31,6 +31,7 @@ toolchain("toolchain") {
"-Wall",
"-Wextra",
"-Wundef",
"-Wformat-nonliteral",
]
if (use_clang) {
cc = "clang"