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)
Core Graveyard
Plug-ins
Tracking
(firefox43 fixed)
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: cpeterson, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
3.37 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
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 1•10 years ago
|
||
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+
Assignee | ||
Comment 2•10 years ago
|
||
Thanks! Here's a green try build:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1d447eec1d31
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Assignee | ||
Updated•10 years ago
|
Blocks: Wunreachable-code
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•