Closed Bug 1236390 Opened 9 years ago Closed 8 years ago

Suppress -Wimplicit-fallthrough warnings in third-party code from Google Breakpad

Categories

(Toolkit :: Crash Reporting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

Details

Attachments

(1 file)

clang's -Wimplicit-fallthrough warnings (not yet enabled in mozilla-central) warn about switch cases that fall through without a break or return statement. MOZ_FALLTHROUGH (bug 1215411) is an annotation to suppress -Wimplicit-fallthrough warnings where the fallthrough is intentional.

However, these crashreporter warnings are in third-party Breakpad code so we must suppress the warnings (or `ALLOW_COMPILER_WARNINGS = True` the crashreporter code) instead of annotating the fallthroughs:

toolkit/crashreporter/google-breakpad/src/common/dwarf/dwarf2reader.cc:195:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:4022:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
Attachment #8703472 - Flags: review?(benjamin)
Attachment #8703472 - Flags: review?(benjamin) → review+
https://hg.mozilla.org/mozilla-central/rev/406857df1c2e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: