WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
314914
[GTK][WPE] Clang 22 is overly chatty about -Wunsafe-buffer-usage-in-format-attr-call
https://bugs.webkit.org/show_bug.cgi?id=314914
Summary
[GTK][WPE] Clang 22 is overly chatty about -Wunsafe-buffer-usage-in-format-at...
Adrian Perez
Reported
2026-05-15 13:41:11 PDT
Clang 22.x has this warning enabled by default, and any usage of a function that receives a printf-style format string and parameters can potentially emit a warning if the compiler cannot determine whether strings are null-terminated. Which happens surprisingly often, many of them being false positives. We should disable this warning for now because even using “build-webkit --[gtk|wpe] --no-fatal-warnings” there is so much warning spam that it is impossible to see meaningful compiler warnings/errors in the midle off the chaff. With the WebKit SDK we use for GTK and WPE the issue is easily reproducible with: % CC=clang-22 CXX=clang++-22 build-webkit --wpe
Attachments
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2026-05-15 13:45:50 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/65008
Philippe Normand
Comment 2
2026-05-16 00:45:00 PDT
***
Bug 309978
has been marked as a duplicate of this bug. ***
EWS
Comment 3
2026-05-16 03:09:33 PDT
Committed
313356@main
(b035254290ed): <
https://commits.webkit.org/313356@main
> Reviewed commits have been landed. Closing PR #65008 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug