Closed
Bug 1499870
Opened 8 years ago
Closed 8 years ago
toolkit/components/maintenanceservice/workmonitor.cpp mixes && and || without parens [-Wlogical-op-parentheses]
Categories
(Firefox :: Untriaged, enhancement)
Firefox
Untriaged
Tracking
()
RESOLVED
FIXED
Firefox 64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(1 external file)
> 24:10.47 warning: toolkit/components/maintenanceservice/workmonitor.cpp:97:20 [-Wlogical-op-parentheses] '&&' within '||'
> 24:10.47 warning: toolkit/components/maintenanceservice/workmonitor.cpp:98:20 [-Wlogical-op-parentheses] '&&' within '||'
> 24:10.47 warning: toolkit/components/maintenanceservice/workmonitor.cpp:131:20 [-Wlogical-op-parentheses] '&&' within '||'
> 24:10.48 warning: toolkit/components/maintenanceservice/workmonitor.cpp:132:20 [-Wlogical-op-parentheses] '&&' within '||'
While this is well-defined, we should use parens to make clear the intent, without requiring memorization of operator precedence.
| Assignee | ||
Comment 1•8 years ago
|
||
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7ec4fa5ecac1
Fix -Wlogical-op-parentheses. r=mhowell
Comment 3•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in
before you can comment on or make changes to this bug.
Description
•