Closed Bug 1194955 Opened 10 years ago Closed 10 years ago

Fix -Wunreachable-code warnings in dom/ipc and dom/plugins

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

dom/ipc/ProcessHangMonitor.cpp:601:5 [-Wunreachable-code-break] 'break' will never be executed dom/plugins/base/nsNPAPIPlugin.cpp:2647:5 [-Wunreachable-code-break] 'break' will never be executed dom/plugins/base/nsPluginHost.cpp:3324:10 [-Wunreachable-code-return] 'return' will never be executed dom/plugins/ipc/PluginInstanceChild.cpp:3445:24 [-Wunreachable-code] code will never be executed
Attachment #8648354 - Flags: review?(jmathies)
Comment on attachment 8648354 [details] [diff] [review] Wunreachable-code_dom.patch Review of attachment 8648354 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/plugins/base/nsPluginHost.cpp @@ -3563,5 @@ > rv = NS_ERROR_NULL_POINTER; > return rv; > } > } > - return rv; How is this method compiling without a return result? oh, hmm, a strange while loop with no breaks.. weird. A push to try for builds on all platforms might be good.
Attachment #8648354 - Flags: review?(jmathies) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: