Le 9 févr. 09 à 19:04, Sean McBride a écrit :

On 2/9/09 11:59 AM, Jean-Daniel Dupas said:

Hmm, I think it might be "Implicit Conversion to 32 bit
type" (GCC_WARN_64_TO_32_BIT_CONVERSION).

IMHO, this flag is recommended only to compile 64 bits code. On 32
bits arch, as you saw, most of the warnings are irrelevant.

I disagree. It can help catch things like converting off_t and fpos_t to int.

I agree with the OP that CGFloat is very annoying in this respect.  My
solution has been to use the 'f' suffix for constants. Similarly, there
is no CGFloat version of sin() and other math functions.



You can use tgmath.h to let the compiler chooses sinf() on 32 bits platform and sin() on 64 bits platform.


_______________________________________________

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