"discards qualifiers from pointer target type"?
"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.