On Thu, Apr 17, 2008 at 4:54 PM, Kyle Sluder
<[EMAIL PROTECTED]> wrote:
> GCC is alerting you to the fact that the switch at the end of the
>  statement is unnecessary.  If you really want to do something for all
>  cases, use default.  Otherwise just omit it.  Using the empty
>  statement (; by itself) will fool GCC, but an empty default case is
>  useless.

An "empty" default it informs the compiler that it is OK that not all
cases are handled (for example when an enum is used) which will avoid
warnings about missing cases when it really doesn't matter.

-Shawn
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to