Re: [webkit-dev] Heads up: FALLTHROUGH annotations for switches with fallthroughs

2014-01-26 Thread Joseph Pecoraro
Nope! If there is no statement between case labels, there will be no warning. Follow the link for a more complete description of cases: - Joe On Jan 26, 2014, at 10:23 AM, Brady Eidson wrote: > I like this! >

Re: [webkit-dev] Heads up: FALLTHROUGH annotations for switches with fallthroughs

2014-01-26 Thread Brady Eidson
I like this! Out of curiosity, will it be needed for cases like: switch (input) { case 1: // fallthrough? case 2: // Handle both 1 and 2 break; default: // default } Thanks, ~Brady On Jan 26, 2014, at 1:41 AM, Joseph Pecoraro wrote: > Hello! > > I'm slowly enabling -Wimplicit-fa

[webkit-dev] Heads up: FALLTHROUGH annotations for switches with fallthroughs

2014-01-26 Thread Joseph Pecoraro
Hello! I'm slowly enabling -Wimplicit-fallthrough on projects in the Mac / iOS ports. This means that if you write any switch statements with implicit fallthroughs it wi