• 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: Warnings suggest compiler confusion between 32 and 64 bit code.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings suggest compiler confusion between 32 and 64 bit code.


  • Subject: Re: Warnings suggest compiler confusion between 32 and 64 bit code.
  • From: Greg Parker <email@hidden>
  • Date: Mon, 22 Jun 2009 12:23:35 -0700

On Jun 22, 2009, at 7:56 AM, Dave Carrigan wrote:
On Jun 22, 2009, at 5:09 AM, Brian Bruinewoud wrote:
warning: passing argument 1 of 'colorWithDeviceRed:green:blue:alpha:' as 'float' rather than 'double' due to prototype

Turn off -Wconversion, which isn't a very useful warning these days that everybody uses ANSI C.

More specifically, -Wconversion is telling you that your code *is* correct, but would be incorrect *if* you deleted the method prototype. That warning might have been useful a few decades ago when prototypes were introduced into code written before they existed, but it's useless now.


There's nothing you can do to your code to make the warning go away. Either ignore the warning, or turn off -Wconversion.


-- 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: 
 >Warnings suggest compiler confusion between 32 and 64 bit code. (From: Brian Bruinewoud <email@hidden>)
 >Re: Warnings suggest compiler confusion between 32 and 64 bit code. (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: Class Factory Methods?
  • Next by Date: Re: Approaches for this Matching Problem?
  • Previous by thread: Re: Warnings suggest compiler confusion between 32 and 64 bit code.
  • Next by thread: Re: Warnings suggest compiler confusion between 32 and 64 bit code.
  • Index(es):
    • Date
    • Thread