Suppress clang 23 unused warnings in vendored Chromium code
Categories
(Core :: Security: Process Sandboxing, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: RyanVM, Assigned: RyanVM)
Details
Attachments
(2 files)
clang 23.1.0 puts -Wunused-template under -Wall and nests -Wunused-but-set-global under -Wunused-but-set-variable. Two vendored Chromium files trip them:
security/sandbox/chromium/base/strings/utf_string_conversions.ccand its copy atthird_party/zucchini/chromium/base/strings/utf_string_conversions.cc: unused conversion templates (-Wunused-template).security/sandbox/chromium/sandbox/win/src/sandbox.cc: a write-only static (-Wunused-but-set-global).
Both directories are vendored Chromium code that we don't modify, and security/sandbox/moz.build already carries per-file warning suppressions for the same reason (bug 2066694). Extend that precedent with -Wno-unused-template / -Wno-unused-but-set-global on the affected files in security/sandbox/moz.build and third_party/zucchini/moz.build, one patch per directory.
| Assignee | ||
Comment 1•1 day ago
|
||
The 32-bit UnicodeAppendUnsafe overload is unused where wchar_t is 16 bits, and s_is_broker is only ever
written. Both are unchanged in upstream Chromium.
| Assignee | ||
Comment 2•1 day ago
|
||
The 32-bit UnicodeAppendUnsafe overload is unused where wchar_t is 16 bits and is unchanged upstream.
Comment 4•11 hours ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d0da32b974a4
https://hg.mozilla.org/mozilla-central/rev/5b8434dc051a
Description
•