Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
- Subject: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
- From: Keary Suska <email@hidden>
- Date: Thu, 04 Oct 2012 11:28:59 -0600
On Oct 3, 2012, at 11:31 PM, Chris Hanson wrote:
> On Oct 3, 2012, at 5:24 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
>> With this line in Xcode Build Settings:
>> OTHER_CFLAGS = -DNS_BUILD_32_LIKE_64=1
>> NS(U)Integer is (unsigned) long for both 32 and 64 Bits.
>> So that %lu / %ld works for both without warnings without any castings.
>
> You should use the Preprocessor Macros build setting instead of Other C Flags for things like this. And include $(inherited) as well unless you explicitly want to exclude values from the setting at other levels.
Great advice everyone--that solved the issue. At the moment I need to target 32 bit as well, so this seems to be the best solution.
Thanks,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden