Closed
Bug 1235238
Opened 10 years ago
Closed 10 years ago
Fix -Wimplicit-fallthrough warning in ssltunnel
Categories
(Testing :: General, defect)
Testing
General
Tracking
(firefox46 fixed)
RESOLVED
FIXED
mozilla46
| Tracking | Status | |
|---|---|---|
| firefox46 | --- | fixed |
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(1 file)
|
881 bytes,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
testing/mochitest/ssltunnel/ssltunnel.cpp:1387:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This patch fixes a clang -Wimplicit-fallthrough warning (not yet enabled by default in mozilla-central) about switch cases that fall through without a break, return, or continue statement.
Warnings about intentional fallthroughs can be suppressed with MOZ_FALLTHROUGH, a MFBT macro for a clang compiler annotation. MOZ_FALLTHROUGH is only needed on cases that have code:
switch (foo) {
case 1: // These cases have no code. No fallthrough annotations are needed.
case 2:
case 3:
foo = 4; // This case has code, so a fallthrough annotation is needed:
MOZ_FALLTHROUGH;
default:
return foo;
}
Attachment #8702100 -
Flags: review?(honzab.moz)
Updated•10 years ago
|
Attachment #8702100 -
Flags: review?(honzab.moz) → review+
Comment 2•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•8 years ago
|
Component: ssltunnel → General
You need to log in
before you can comment on or make changes to this bug.
Description
•