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

Warning on cast but API says it's fine.


  • Subject: Warning on cast but API says it's fine.
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 17 Aug 2005 11:54:10 +0200

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 *.

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?

_______________________________________________
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


  • Follow-Ups:
    • Re: Warning on cast but API says it's fine.
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: x86 Darwin compiler farm?
  • Next by Date: Re: Static data member behaviour in release builds
  • Previous by thread: Re: x86 Darwin compiler farm?
  • Next by thread: Re: Warning on cast but API says it's fine.
  • Index(es):
    • Date
    • Thread