• 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: Ian Crew <email@hidden>
  • Date: Tue, 2 Jul 2002 23:50:03 -0700

Greetings:

I'm working on my first program in Objective C (though not my first Cocoa program), and, when I compile my code, I get the following warning:

MSM src/AppDelegate.m:1468: warning: passing arg 2 of `DotDecimalToInetHost::' discards qualifiers from pointer target type

DotDecimalToInetHost is defined as:
- (int) DotDecimalToInetHost:(int* )ipAddr :(char*) dotDecimal;

and the line that gnerates the warning reads:
err = [self DotDecimalToInetHost: &ipAddrBits :[TheIP cString]];

ipAddrBits is an int, and TheIP is a NSString*.

The app (and the lines in question) seem to work just fine, even with this warning. So--what am I doing wrong, and is it something I need to worry about?

Thanks!

Ian
--
_____________________________________________________________________________
| "Dance to it, Sing to it, Love, Cry, Remember | Ian Crew |
| when, Imagine if, Wonder Why" -Anonymous | email@hidden |
|_______________________________________________|_____________________________|
_______________________________________________
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.

  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Re: "discards qualifiers from pointer target type"?
  • Previous by thread: Re: Creating a NSBitmapImageRep
  • Next by thread: Re: "discards qualifiers from pointer target type"?
  • Index(es):
    • Date
    • Thread