Re: Weird build error
Re: Weird build error
- Subject: Re: Weird build error
- From: "Hamish Allan" <email@hidden>
- Date: Fri, 18 Apr 2008 00:53:56 +0200
On Fri, Apr 18, 2008 at 12:47 AM, Don Arnel <email@hidden> wrote:
> switch (1) {
> default:
> }
> (x)(error: label at end of compound statement)
You need a statement to execute for the default case. The code you
have written is equivalent to:
- (void)TestFunction
{
if (1 == 1)
;
else
}
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden