• 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: Turning off 'enumeral mismatch' warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning off 'enumeral mismatch' warnings?


  • Subject: Re: Turning off 'enumeral mismatch' warnings?
  • From: Matt Gough <email@hidden>
  • Date: Fri, 12 May 2006 09:40:44 +0100


On 12 May 2006, at 02:23, Steve Sisak wrote:

A workaround for this specific case is:

  err = someParam ? (OSErr) noErr : paramErr;

By casting either param to an integer type, the other is promoted and the types now match (and you probably wanted OSErr or OSStatus anyway).

That is the same workaround I came up with. Thankfully there were only about 20 such uses.


So (Chris) just to confirm, this is a bug in the compiler and not anything wrong with this usage style. Correct?

Matt
_______________________________________________
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: 
 >Turning off 'enumeral mismatch' warnings? (From: Matt Gough <email@hidden>)
 >Re: Turning off 'enumeral mismatch' warnings? (From: "James W. Walker" <email@hidden>)
 >Re: Turning off 'enumeral mismatch' warnings? (From: Chris Espinosa <email@hidden>)
 >Re: Turning off 'enumeral mismatch' warnings? (From: Steve Sisak <email@hidden>)

  • Prev by Date: Bundling bundles in framework
  • Next by Date: Problem compiling CAutoRef_AC from ACS classes
  • Previous by thread: Re: Turning off 'enumeral mismatch' warnings?
  • Next by thread: Re: Turning off 'enumeral mismatch' warnings?
  • Index(es):
    • Date
    • Thread