Closed Bug 1685353 Opened 3 years ago Closed 3 years ago

Disable "-Woverloaded-virtual" for GCC, because it warns on static overloads

Categories

(Developer Infrastructure :: Source Code Analysis, task)

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: mhentges, Assigned: mhentges)

References

Details

Attachments

(1 file)

After some discussion with :andi, it sounds like the case made here isn't quite accurate. As confirmed by :andi:

It's impossible to override a virtual method statically, so this shouldn't be a surprise to C++ developers

It sounds like this warning isn't valuable.
So, rather than making this into a clang-tidy warning as described here, we will disable this warning on GCC so that developers aren't bugged by delayed backouts.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
See Also: → 1674448
See Also: → 1678130

In addition to warning on regular methods overloading virtual functions,
GCC also watches for static functions doing such overloads.
:andi confirmed that this is not valuable, so the warning is being
disabled for GCC.

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec3d60a61867
Disable -Woverloaded-virtual for GCC r=firefox-build-system-reviewers,sheehan,andi,glandium
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
See Also: → 1718408
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: