• 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: Warning on cast but API says it's fine.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Warning on cast but API says it's fine. (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Adding a symlink (not its target) to a project (libz.dylib post security update)
  • Next by Date: Re: Xcode 2.1 locking up immediately
  • Previous by thread: Warning on cast but API says it's fine.
  • Next by thread: Adding a symlink (not its target) to a project (libz.dylib post security update)
  • Index(es):
    • Date
    • Thread