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 protected]     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to