Closed Bug 1194954 Opened 9 years ago Closed 9 years ago

Fix -Wunreachable-code warnings in gfx/layers and gfx/thebes

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Fix the following -Wunreachable-code warnings. Also rearrange two switch statements to remove their default cases so gcc/clang will report -Wswitch warnings about unhandled enum values if new Layer type or eGfxLog enum values are added in the future. gfx/layers/LayerTreeInvalidation.cpp:430:41 [-Wunreachable-code-return] 'return' will never be executed gfx/thebes/gfxPlatform.cpp:2168:9 [-Wunreachable-code-break] 'break' will never be executed gfx/thebes/gfxPlatform.cpp:2171:9 [-Wunreachable-code-break] 'break' will never be executed gfx/thebes/gfxPlatform.cpp:2174:9 [-Wunreachable-code-break] 'break' will never be executed gfx/thebes/gfxPlatform.cpp:2177:9 [-Wunreachable-code-break] 'break' will never be executed gfx/thebes/gfxPlatform.cpp:2180:9 [-Wunreachable-code-break] 'break' will never be executed gfx/thebes/gfxPlatform.cpp:2183:9 [-Wunreachable-code-break] 'break' will never be executed
Attachment #8648353 - Flags: review?(bgirard)
Comment on attachment 8648353 [details] [diff] [review] Wunreachable-code_gfx.patch Review of attachment 8648353 [details] [diff] [review]: ----------------------------------------------------------------- Thank you!
Attachment #8648353 - Flags: review?(bgirard) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: