• 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: initialization makes integer from pointer without a cast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >warning: initialization makes integer from pointer without a cast (From: Stuart Green <email@hidden>)

  • Prev by Date: Re: Design Question: Pro & Cons of KVC/KVO
  • Next by Date: Re: !foo vs foo == nil
  • Previous by thread: Re: warning: initialization makes integer from pointer without a cast
  • Next by thread: Obtaining rotation from CTM
  • Index(es):
    • Date
    • Thread