Closed Bug 596063 Opened 14 years ago Closed 14 years ago

Fix 4 "warning: suggest parentheses around && within ||" warnings in SVGLengthListSMILType

Categories

(Core :: SVG, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: dholbert, Assigned: juca)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

Just noticed this go by in my GCC compile-spew (in up-to-date mozilla-central): >SVGLengthListSMILType.cpp: In member function ‘virtual nsresult mozilla::SVGLengthListSMILType::ComputeDistance(const nsSMILValue&, const nsSMILValue&, double&) const’: > SVGLengthListSMILType.cpp:183: warning: suggest parentheses around && within || > SVGLengthListSMILType.cpp:183: warning: suggest parentheses around && within || > SVGLengthListSMILType.cpp: In member function ‘virtual nsresult mozilla::SVGLengthListSMILType::Interpolate(const nsSMILValue&, const nsSMILValue&, double, nsSMILValue&) const’: > SVGLengthListSMILType.cpp:258: warning: suggest parentheses around && within || > SVGLengthListSMILType.cpp:258: warning: suggest parentheses around && within || I'm filing this bug on adding the suggested parentheses to silence these warnings.
Whiteboard: [build_warning]
That's a weird warning. Doesn't everyone know the precedence of those operators? :)
Probably, but it's nice to have the parens anyway, just to be absolutely clear about what you're testing.
Assignee: nobody → juca
Status: NEW → ASSIGNED
Attached patch add parentheses (deleted) — Splinter Review
Attachment #474923 - Flags: review?(dholbert)
Comment on attachment 474923 [details] [diff] [review] add parentheses Looks good! Thanks for the fix!
Attachment #474923 - Flags: review?(dholbert)
Attachment #474923 - Flags: review+
Attachment #474923 - Flags: approval2.0?
Attachment #474923 - Flags: approval2.0? → approval2.0+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: