Open Bug 2060534 Opened 3 months ago Updated 1 month ago

Enable -Wunused-but-set-global by default

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox155 affected)

ASSIGNED
Tracking Status
firefox155 --- affected

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

clang 22 adds -Wunused-but-set-global, the global-variable counterpart of the -Wunused-but-set-variable / -Wunused-but-set-parameter warnings we already enable. It catches genuinely dead state, e.g. in browser/app/nsBrowserApp.cpp:

No longer regressed by: 1992267

The global-variable counterpart of the -Wunused-but-set-variable and
-Wunused-but-set-parameter warnings we already enable. Available in
clang 22 and later.

Assignee: nobody → sledru
Status: NEW → ASSIGNED

This bug has been marked as a regression. Setting status flag for Nightly to affected.

Type: defect → task
Keywords: regression
Attachment #9621659 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: