• 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: warning for unsigned parameter, signed argument with NSUInteger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning for unsigned parameter, signed argument with NSUInteger


  • Subject: Re: warning for unsigned parameter, signed argument with NSUInteger
  • From: Greg Parker <email@hidden>
  • Date: Wed, 15 Apr 2009 14:03:08 -0700

On Apr 15, 2009, at 1:59 PM, Sean McBride wrote:
On 4/15/09 1:53 PM, Greg Parker said:

-Wconversion will warn about this ("Also, warn if a negative integer
constant expression is implicitly converted to an unsigned type.")
But -Wconversion generates other undesirable and unavoidable warnings,
so you probably can't use it.

Oh yeah, forgot about that one. In gcc >= 4.3 the 'other undesirable and unavoidable warnings' were removed: <http://gcc.gnu.org/gcc-4.3/changes.html>

So -Wconversion is probably exactly what is called for.

Hopefully we'll see it in Apple's gcc fork one day! Greg, is a radar needed?

Kill^WFile them all, and let the compiler team sort them out!


-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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: 
 >warning for unsigned parameter, signed argument with NSUInteger (From: Roland King <email@hidden>)
 >Re: warning for unsigned parameter, signed argument with NSUInteger (From: "Sean McBride" <email@hidden>)
 >Re: warning for unsigned parameter, signed argument with NSUInteger (From: Greg Parker <email@hidden>)
 >Re: warning for unsigned parameter, signed argument with NSUInteger (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Next by Date: Re: 3 iPhone SDK Questions
  • Previous by thread: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Next by thread: updating NSTextField with key validation?
  • Index(es):
    • Date
    • Thread