• 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: discards qualifiers from pointer target type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: discards qualifiers from pointer target type


  • Subject: Re: discards qualifiers from pointer target type
  • From: Don Murta <email@hidden>
  • Date: Sat, 01 Mar 2003 12:25:42 -0700

Because cString returns a const char * and you are using it as a char *. Cast it to get rid of the warning or fix up the sendLCDcmd to receive a const char * instead.

hope that helps.
don.

On Saturday, March 1, 2003, at 12:10 PM, Chuck Rice wrote:
Can someone tell me why I am getting:

warning: passing arg 1 of `sendLCDcmd:'
discards qualifiers from pointer target type

mean? The warning occurs in:
<snip>
The code runs fine, but warnings make me uncomfortable. -Chuck-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >discards qualifiers from pointer target type (From: Chuck Rice <email@hidden>)

  • Prev by Date: InterfaceBuilder and .mm files
  • Next by Date: Re: discards qualifiers from pointer target type
  • Previous by thread: Re: discards qualifiers from pointer target type
  • Next by thread: Re: Instantly setting preferences
  • Index(es):
    • Date
    • Thread