• 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: Tue, 23 Jun 2009 00:01:40 -0400

On Mon, Jun 22, 2009 at 12:42 PM, Kyle Sluder<email@hidden> wrote:
> On Mon, Jun 22, 2009 at 5:09 AM, Brian Bruinewoud<email@hidden> wrote:
>>    CGFloat c = 0.0L;
>
> The compiler is silent here because it knows that 0.0L is finitely
> representable as a float (0.0).
>
> As for the other two occasions, you would need to compile with data
> flow analysis (which I believe is triggered by -O2 or higher) for the
> compiler to perform the constant folding necessary to see that you're
> storing a finitely-representable value.
>
> I would not recommend disabling -Wconversion.  It is a great way to
> highlight places where your code is not 64-bit ready.

I think you mean -Wshorten-64-to-32. -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.

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

  • Follow-Ups:
    • 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: Dave Carrigan <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>)

  • Prev by Date: CalendarStore and delegated calendars
  • Next by Date: Re: Amount of Arguments per Method
  • 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