Re: Warning on cast but API says it's fine.
Re: Warning on cast but API says it's fine.
- Subject: Re: Warning on cast but API says it's fine.
- From: Chris Espinosa <email@hidden>
- Date: Wed, 17 Aug 2005 08:20:42 -0700
On Aug 17, 2005, at 2:54 AM, Stephane Sudre wrote:
I have the following really complex code:
const char * toto;
toto=[aNSString UTF8String];
When I compile this with Xcode 2, I'm getting a warning informing me
basically that the return value of UTF8String is not a const char *.
Could you please quote the exact warning?
I'm using the 10.3.9 SDK.
The doc and header are stating that:
- (const char *)UTF8String;
So I guess that Xcode is wrong. But why?
I get no such warning, with either gcc3.3 or gcc4.0, using either
native 10.4 headers, or the 104u or the 103.9 SDK. Could you send a
complete build transcript and if possible the preprocessed output of
the source file?
Chris
_______________________________________________
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