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

discards qualifiers from pointer target type


  • Subject: discards qualifiers from pointer target type
  • From: Chuck Rice <email@hidden>
  • Date: Sat, 1 Mar 2003 11:10:55 -0800

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:

//-------------------------------------------------------------------
// BackLightOn
//-------------------------------------------------------------------

- (void) BackLightOn:(int)minutes

{
char timout = minutes;
char * p = &timout;
[self sendLCDcmd:[[NSString stringWithFormat:@"%1s%1s",BACKLIGHTON,p] cString]];
return;
}
//-------------------------------------------------------------------


sendLDCcmd is defined as:

- (void) sendLCDcmd:(char *)str;

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.

  • Follow-Ups:
    • Re: discards qualifiers from pointer target type
      • From: Don Murta <email@hidden>
    • Re: discards qualifiers from pointer target type
      • From: Dan Bernstein <cocoa-dev%email@hidden>
References: 
 >Instantly setting preferences (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Unusual drag and drop problem
  • Next by Date: Re: adding charactersets
  • Previous by thread: Re: Instantly setting preferences
  • Next by thread: Re: discards qualifiers from pointer target type
  • Index(es):
    • Date
    • Thread