Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f8db9267080e51a24becf80663602b7b03010cc8
https://github.com/WebKit/WebKit/commit/f8db9267080e51a24becf80663602b7b03010cc8
Author: David Kilzer <[email protected]>
Date: 2026-07-18 (Sat, 18 Jul 2026)
Changed paths:
M Tools/lldb/lldbWebKitTester/main.cpp
Log Message:
-----------
Silence deadcode.DeadStores analyzer findings in lldbWebKitTester
<https://bugs.webkit.org/show_bug.cgi?id=319767>
<rdar://182627956>
Reviewed by Zak Ridouh.
The `StringImpl*` locals in `testSummaryProviders()` exist only so a
developer can inspect how the `lldb_webkit.py` summary providers render
them at the `breakForTestingSummaryProviders()` breakpoint; the compiled
program never reads them. Three of them are not otherwise consumed, so
the `deadcode.DeadStores` static analyzer flags each initialization as a
dead store.
Mark those three declarations `[[maybe_unused]]` to record that they are
intentionally never read. `deadcode.DeadStores` is an AST-based checker
that skips any variable carrying the unused attribute, so this silences
the finding at its source while keeping the values available for
inspection. `an8BitStringImpl` is left unannotated because the
`CompactPointerTuple` examples below read it.
* Tools/lldb/lldbWebKitTester/main.cpp:
(testSummaryProviders):
Canonical link: https://commits.webkit.org/317505@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications