On Thu, 9 Apr 2015 17:05:57 -0400, Alex Zavatone said:

>Sorry that I sent this before the main observation.
>
>Considering the implications of this, should Xcode's compiler flag these
>"unbreak-ed case statements" with a warning?   Currently, it doesn't do that.

-Wimplict-fallthrough

>Is there any reasonable case where you'd want a case condition to not
>have a break statement after it?

Yes, but not often IMHO.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to