• 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: 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

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

  • Prev by Date: Re: Cocoa and email (SMTP/POP3)
  • Next by Date: Re: Cocoa and email (SMTP/POP3)
  • 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