Bug 117416 - [WK2][CoordinatedGraphics] Add default case to switches to fix strict build
Summary: [WK2][CoordinatedGraphics] Add default case to switches to fix strict build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Correia (qrwteyrutiyoup)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-10 13:10 PDT by Sergio Correia (qrwteyrutiyoup)
Modified: 2013-06-10 15:10 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.91 KB, patch)
2013-06-10 13:12 PDT, Sergio Correia (qrwteyrutiyoup)
no flags Details | Formatted Diff | Diff
Patch (2.13 KB, patch)
2013-06-10 13:30 PDT, Sergio Correia (qrwteyrutiyoup)
no flags Details | Formatted Diff | Diff
Patch (2.14 KB, patch)
2013-06-10 13:42 PDT, Sergio Correia (qrwteyrutiyoup)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Correia (qrwteyrutiyoup) 2013-06-10 13:10:26 PDT
[WK2][CoordinatedGraphics] Add default case to switches to fix strict build
Comment 1 Sergio Correia (qrwteyrutiyoup) 2013-06-10 13:12:15 PDT
Created attachment 204180 [details]
Patch
Comment 2 Noam Rosenthal 2013-06-10 13:19:25 PDT
Comment on attachment 204180 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=204180&action=review

> Source/WebKit2/ChangeLog:26
> +        While doing a strict build, with ENABLE_WERROR enabled, gcc complained
> +        about some enumeration values not being handled in two switch statements,
> +        causing the build to fail:
> +
> +        CoordinatedGraphicsArgumentCoders.cpp:171:24: error: enumeration value
> +        'COLOR' not handled in switch [-Werror=switch]
> +        CoordinatedGraphicsArgumentCoders.cpp:171:24: error: enumeration value
> +        'MATRIX' not handled in switch [-Werror=switch]
> +
> +        and
> +
> +        CoordinatedGraphicsArgumentCoders.cpp:288:24: error: enumeration value
> +        'COLOR' not handled in switch [-Werror=switch]
> +        CoordinatedGraphicsArgumentCoders.cpp:288:24: error: enumeration value
> +        'MATRIX' not handled in switch [-Werror=switch]
> +        cc1plus: all warnings being treated as errors
> +
> +        This patch adds a default case for each of these switches, to stop gcc
> +        from complaining and breaking a strict build.

Too much information, simply say that you fix strict build by asserting on default switch cases or something like that :)
Comment 3 Sergio Correia (qrwteyrutiyoup) 2013-06-10 13:24:12 PDT
(In reply to comment #2)
> (From update of attachment 204180 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=204180&action=review
[snip] 
> Too much information, simply say that you fix strict build by asserting on default switch cases or something like that :)

Heh, okay :)
Comment 4 Sergio Correia (qrwteyrutiyoup) 2013-06-10 13:30:58 PDT
Created attachment 204183 [details]
Patch
Comment 5 Noam Rosenthal 2013-06-10 13:38:43 PDT
Comment on attachment 204183 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=204183&action=review

> Source/WebKit2/ChangeLog:8
> +        This patch fix a strict build by asserting on the default case of two switch

nit: fix -> fixes :)
Comment 6 Sergio Correia (qrwteyrutiyoup) 2013-06-10 13:42:40 PDT
Created attachment 204185 [details]
Patch

Fixed typo in changelog.
Comment 7 WebKit Commit Bot 2013-06-10 15:08:56 PDT
The commit-queue encountered the following flaky tests while processing attachment 204185 [details]:

http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html bug 114208 (authors: abarth@webkit.org and rniwa@webkit.org)
http/tests/inspector/inspect-element.html bug 78869 (author: pfeldman@chromium.org)
media/video-poster-delayed.html bug 117426 (authors: annacc@chromium.org, jamesr@chromium.org, vestbo@webkit.org, and vrk@chromium.org)
fast/loader/javascript-url-in-object.html bug 114210 (authors: rniwa@webkit.org and sam@webkit.org)
platform/mac/editing/deleting/deletionUI-single-instance.html bug 114181 (author: rniwa@webkit.org)
compositing/reflections/load-video-in-reflection.html bug 117427 (authors: mihaip@chromium.org, rniwa@webkit.org, and simon.fraser@apple.com)
transitions/color-transition-rounding.html bug 114182 (author: simon.fraser@apple.com)
transitions/cubic-bezier-overflow-svg-length.html bug 114183 (author: peter@chromium.org)
transitions/interrupt-zero-duration.html bug 114184 (authors: cmarrin@apple.com, rniwa@webkit.org, and simon.fraser@apple.com)
transitions/multiple-background-transitions.html bug 114185 (author: simon.fraser@apple.com)
transitions/cubic-bezier-overflow-color.html bug 114186 (author: peter@chromium.org)
transitions/multiple-shadow-transitions.html bug 114187 (author: simon.fraser@apple.com)
transitions/mismatched-shadow-transitions.html bug 114188 (author: simon.fraser@apple.com)
transitions/color-transition-all.html bug 114189 (authors: ossy@webkit.org and simon.fraser@apple.com)
transitions/cubic-bezier-overflow-shadow.html bug 114191 (author: peter@chromium.org)
transitions/min-max-width-height-transitions.html bug 114192 (author: simon.fraser@apple.com)
transitions/cancel-transition.html bug 114193 (authors: ojan@chromium.org, rniwa@webkit.org, and simon.fraser@apple.com)
transitions/border-radius-transition.html bug 114194 (author: simon.fraser@apple.com)
transitions/flex-transitions.html bug 114195 (author: tony@chromium.org)
transitions/mixed-type.html bug 114196 (author: mikelawther@chromium.org)
transitions/multiple-mask-transitions.html bug 114197 (author: simon.fraser@apple.com)
transitions/color-transition-premultiplied.html bug 114198 (author: simon.fraser@apple.com)
transitions/mismatched-shadow-styles.html bug 114199 (author: simon.fraser@apple.com)
transitions/mask-transitions.html bug 114200 (authors: ojan@chromium.org, oliver@apple.com, and simon.fraser@apple.com)
transitions/cubic-bezier-overflow-length.html bug 114201 (author: peter@chromium.org)
transitions/multiple-background-size-transitions.html bug 114202 (authors: mitz@webkit.org and simon.fraser@apple.com)
transitions/clip-transition.html bug 114203 (authors: dglazkov@chromium.org, krit@webkit.org, and simon.fraser@apple.com)
transitions/cubic-bezier-overflow-transform.html bug 114204 (author: peter@chromium.org)
transitions/interrupted-accelerated-transition.html bug 56242 (authors: rniwa@webkit.org, simon.fraser@apple.com, and tonyg@chromium.org)
transitions/background-transitions.html bug 114206 (author: simon.fraser@apple.com)
The commit-queue is continuing to process your patch.
Comment 8 WebKit Commit Bot 2013-06-10 15:10:19 PDT
Comment on attachment 204185 [details]
Patch

Clearing flags on attachment: 204185

Committed r151406: <http://trac.webkit.org/changeset/151406>
Comment 9 WebKit Commit Bot 2013-06-10 15:10:23 PDT
All reviewed patches have been landed.  Closing bug.