On Tue, Jun 23, 2009 at 12:41 AM, Dave Carrigan<d...@rudedog.org> 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to