RESOLVED FIXED 127647
JavaScriptCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
https://bugs.webkit.org/show_bug.cgi?id=127647
Summary JavaScriptCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation ...
Joseph Pecoraro
Reported 2014-01-26 01:11:36 PST
This should go through a careful review. I don't think anything is controversial here. I can already see that engineers might want to include a comment with a FALLTHROUGH. For example: // fall through to Foo Could become: FALLTHROUGH; // To Foo. In the first patch I only left comments that seemed most apt to keep. Also filed a clang issue to make FALLTHROUGH nicer to use in the case and there are labels preceding the next case: http://llvm.org/bugs/show_bug.cgi?id=18621
Attachments
[PATCH] Proposed Fix (17.19 KB, patch)
2014-01-26 01:14 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (18.38 KB, patch)
2014-01-26 02:42 PST, Joseph Pecoraro
andersca: review+
Joseph Pecoraro
Comment 1 2014-01-26 01:14:14 PST
Created attachment 222265 [details] [PATCH] Proposed Fix Again, reviewers look carefully. This may have uncovered a latent bug with an accidental fallthrough.
Joseph Pecoraro
Comment 2 2014-01-26 02:42:14 PST
Created attachment 222268 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2014-01-27 20:01:13 PST
Note You need to log in before you can comment on or make changes to this bug.