Re: Warnings suggest compiler confusion between 32 and 64 bit code.
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