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: Michael Ash <email@hidden>
- Date: Wed, 24 Jun 2009 00:14:04 -0400
On Tue, Jun 23, 2009 at 12:41 AM, Dave Carrigan<email@hidden> wrote:
>
> On Jun 22, 2009, at 9:01 PM, Michael Ash wrote:
>
>> -Wconversion warns you every time
>> a function call has the parameter passing altered by the presence of
>> the function's prototype, which is to say that it will warn you every
>> time you call any function (or method) which takes a char, unsigned
>> char, short, unsigned short, or float. Not exactly useful.
>
> At least until Xcode gets gcc 4.3, where -Wconversion has been renamed
> -Wtraditional-conversion, and -Wconversion gives useful warnings about
> variables that might have their value changed during the conversion.
>
> This page
> http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting/building/building.html does
> seem to suggest that -Wconversion has its place but istm that you will have
> a lot of difficulty isolating the real problems from all of the error chaff.
Again, -Wconversion does nothing to help with 64-bit coding on the
version of gcc that Apple is currently shipping. Read the man page if
you don't believe it. The useful one for this purpose is
-Wshorten-64-to-32. That Apple document is either wrong or referring
to a different version of gcc than the one my man page is talking
about.
Mike
_______________________________________________
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