Closed Bug 1275475 Opened 9 years ago Closed 9 years ago

Fix -Wlogical-op warning in dom/animation/ComputedTimingFunction.cpp

Categories

(Core :: DOM: Animation, defect)

48 Branch
Unspecified
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox46 --- unaffected
firefox47 --- unaffected
firefox48 --- fix-optional
firefox49 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

(Keywords: regression)

Attachments

(1 file)

dom/animation/ComputedTimingFunction.cpp:33:114 [-Wlogical-op] logical 'or' of collectively exhaustive tests is always true This assertion in StepTiming() is always true because (aType != StepStart || aType != StepEnd) is true for any value of aType. :)
Attachment #8756194 - Flags: review?(daisuke)
Comment on attachment 8756194 [details] [diff] [review] Wlogical-op_dom-animation.patch Review of attachment 8756194 [details] [diff] [review]: ----------------------------------------------------------------- Chris, thank you very much!
Attachment #8756194 - Flags: review?(daisuke) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment on attachment 8756194 [details] [diff] [review] Wlogical-op_dom-animation.patch Approval Request Comment [Feature/regressing bug #]: bug 1248532 [User impact if declined]: -Wlogical-op warning failure [Describe test coverage new/current, TreeHerder]: Has baked on m-c for nearly a month [Risks and why]: None. Just fixes an assertion from being useless to reporting what is was intended to. [String/UUID change made/needed]: None
Attachment #8756194 - Flags: approval-mozilla-aurora?
Comment on attachment 8756194 [details] [diff] [review] Wlogical-op_dom-animation.patch Assertion fix, looks simple, ok to uplift to aurora.
Attachment #8756194 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Brian, marking this fix-optional for beta as we are now heading into beta 7. It doesn't sound crucial to fix there but let me know if you disagree.
This should have been nominated for beta approval rather than aurora approval at the time. Do you want to clear the aurora approval since it's meaningless in this context or just switch it over to beta instead?
Flags: needinfo?(lhenry)
Version: unspecified → 48 Branch
Comment on attachment 8756194 [details] [diff] [review] Wlogical-op_dom-animation.patch Thanks Ryan, I missed that one!
Flags: needinfo?(lhenry)
Attachment #8756194 - Flags: approval-mozilla-aurora+
Blocks: Wlogical-op
No longer blocks: buildwarning
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: