Re: warning: initialization makes integer from pointer without a cast
Re: warning: initialization makes integer from pointer without a cast
- Subject: Re: warning: initialization makes integer from pointer without a cast
- From: Simone Tellini <email@hidden>
- Date: Thu, 21 Aug 2008 16:41:28 +0200
Il giorno 21/ago/08, alle ore 15:42, Stuart Green ha scritto:
const char cUserName = [username UTF8String];
const char cEmail = [email UTF8String];
However, come the build, I get
warning: initialization makes integer from pointer without a cast
I thought I was doing everything right. Any ideas?
const char *cUserName = [username UTF8String];
UTF8String returns a pointer to a string (char *), not a single byte
(char)
--
Simone Tellini
http://tellini.info
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden