Bug 127671

Summary: WebCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, alecflett, allan.jensen, andersca, apinheiro, benjamin, cfleizach, cgarcia, cmarcelo, commit-queue, dmazzoni, d-r, eric.carlson, esprehn+autocc, fmalita, glenn, gustavo, gyuyoung.kim, japhet, jcraig, jdiggs, jer.noble, joepeck, jsbell, kangil.han, kondapallykalyan, macpherson, mario, menard, mrobinson, pdr, philipj, pnormand, samuel_white, sam, schenney
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix rniwa: review+

Description Joseph Pecoraro 2014-01-26 22:18:43 PST
Catches a few subtle bugs, identified some possible bugs, but overall mostly straightforward.
Comment 1 Joseph Pecoraro 2014-01-26 22:41:36 PST
Created attachment 222303 [details]
[PATCH] Proposed Fix

Probably relies on the JavaScriptCore patch landing as well so I won't put cq? on it. Tested debug and release compiles.
Comment 2 Ryosuke Niwa 2014-01-27 19:09:20 PST
Comment on attachment 222303 [details]
[PATCH] Proposed Fix

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

> Source/WebCore/css/SVGCSSParser.cpp:274
> +        break;

Nice catch!

> Source/WebCore/css/StyleResolver.cpp:2230
> +            return;
>          }
> +        

Ditto!

> Source/WebCore/rendering/AutoTableLayout.cpp:-523
> -            // fall through

Huh, out-dated comment. That's classic.
Comment 3 Joseph Pecoraro 2014-01-27 20:01:31 PST
Landed <http://trac.webkit.org/changeset/162907>.