• 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: Keary Suska <email@hidden>
  • Date: Thu, 17 Apr 2008 17:10:47 -0600
  • Thread-topic: Weird build error

on 4/17/08 4:56 PM, email@hidden purportedly said:

> A break; is not required, but it does cause the compound statement
> error to go away. Even with the break; inserted the other error still
> occurs if the comments are removed.
>
> On Apr 17, 2008, at 6:50 PM, Robert Kukuchka wrote:
>
>> you forgot the break;

If I understand your problem correctly, I have run across this numerous
times. For some reason, and I haven't yet found consistency, the compiler
will choke on declarations inside switch/case statements. Declare the local
variable outside of the statement, and I bet the error will go away.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: 
 >Re: Weird build error (From: Don Arnel <email@hidden>)

  • Prev by Date: Re: Why is [nil aMessage] a no-op?
  • 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