Bug 314914
| Summary: | [GTK][WPE] Clang 22 is overly chatty about -Wunsafe-buffer-usage-in-format-attr-call | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | CMake | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | philn |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=315007 | ||
| Bug Depends on: | |||
| Bug Blocks: | 309978 | ||
Adrian Perez
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
Pull request: https://github.com/WebKit/WebKit/pull/65008
Philippe Normand
*** Bug 309978 has been marked as a duplicate of this bug. ***
EWS
Committed 313356@main (b035254290ed): <https://commits.webkit.org/313356@main>
Reviewed commits have been landed. Closing PR #65008 and removing active labels.