Closed Bug 1236389 Opened 10 years ago Closed 10 years ago

Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in mozapps/update

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

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 about switch cases that intentionally fall through without a break or return statement. MOZ_FALLTHROUGH is only needed on cases that have code. toolkit/mozapps/update/updater/updater.cpp:3722:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels toolkit/mozapps/update/updater/updater.cpp:3768:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
Attachment #8703471 - Flags: review?(netzen)
rstrong would be a better reviewer for this. I tried to change myself but I'm getting: > away until 1/4 Robert Strong [:rstrong] (use needinfo to contact me) <robert.strong.bugs@gmail.com> is not currently accepting 'review' requests. Please try to change it to him tomorrow.
Comment on attachment 8703471 [details] [diff] [review] updater_MOZ_FALLTHROUGH.patch Review of attachment 8703471 [details] [diff] [review]: ----------------------------------------------------------------- Moving to rstrong
Attachment #8703471 - Flags: review?(netzen)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Blocks: 1253170
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: