• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird build error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Weird build error (From: Don Arnel <email@hidden>)

  • Prev by Date: Re: Weird build error
  • Next by Date: Re: Weird build error
  • Previous by thread: Re: Weird build error
  • Next by thread: Re: Weird build error
  • Index(es):
    • Date
    • Thread