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)

enhancement
Not set
normal

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.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: