• 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: Missing braces? I don't see where
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing braces? I don't see where


  • Subject: Re: Missing braces? I don't see where
  • From: Kevin Brock <email@hidden>
  • Date: Tue, 27 Oct 2009 15:48:10 -0700

Chris Suter wrote:
Hi Steve,

You want:

COLORDATA backgroundColor = { kRGBSpace, false, { { 0xFFFF, 0xFFFF, 0xFFFF } } };

because of the union.

Yes. Some people might not see an error with the unbracketed version because the default setting for some new Xcode projects appears to be *not* warning on partially bracketed initializers.


There's a specific warning that can be turned on to make sure initializer bracketing is complete.

Kevin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Missing braces? I don't see where (From: Steve Mills <email@hidden>)
 >Re: Missing braces? I don't see where (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Missing braces? I don't see where
  • Next by Date: Re: Missing braces? I don't see where
  • Previous by thread: Re: Missing braces? I don't see where
  • Next by thread: Re: Missing braces? I don't see where
  • Index(es):
    • Date
    • Thread