Remove dead default cases in gfx

RESOLVED FIXED in mozilla13

Status

()

Core
Graphics
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: espindola, Assigned: espindola)

Tracking

unspecified
mozilla13
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Comment hidden (empty)
Created attachment 594106 [details] [diff] [review]
Remove dead default cases in gfx

https://tbpl.mozilla.org/?tree=Try&rev=92c7fb526737
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #594106 - Flags: review?(jmuizelaar)
Depends on: 723114
gcc cannot figure out that a switch covers all the values, so we depend on 723114. I have pushed a combined patch to try in

https://tbpl.mozilla.org/?tree=Try&rev=a2a0f4979b8d
Created attachment 594116 [details] [diff] [review]
Remove dead default cases in gfx

https://tbpl.mozilla.org/?tree=Try&rev=805b7cac0030

Added a missing include :-(
Sorry for the noise.
Attachment #594106 - Attachment is obsolete: true
Attachment #594106 - Flags: review?(jmuizelaar)
Attachment #594116 - Flags: review?(jmuizelaar)
Comment on attachment 594116 [details] [diff] [review]
Remove dead default cases in gfx

I'm not thrilled with the addition of MOZ_NOT_REACHED() but if gcc needs it so be it.
Attachment #594116 - Flags: review?(jmuizelaar) → review+
Comment on attachment 594116 [details] [diff] [review]
Remove dead default cases in gfx

Review of attachment 594116 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/thebes/gfxRect.h
@@ +130,2 @@
>          }
> +        MOZ_NOT_REACHED("Incomplet switch");

This should be "Incomplete switch".  Here and elsewhere in this patch.
A new combined patch is under test in

https://tbpl.mozilla.org/?tree=Try&rev=6c6023a4e8a3

I will push this one once the dependency is fixed.
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=9b88e7f2571c
https://hg.mozilla.org/mozilla-central/rev/9b88e7f2571c
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.