Re: Persistant Warning
Re: Persistant Warning
- Subject: Re: Persistant Warning
- From: Matthew Harrison <email@hidden>
- Date: Mon, 17 Jun 2002 10:02:10 +0100
- Organization: Beaufort International Group Plc
I had that, too.
try changing your code to:
const char* cInString = [inString cString];
, as cString returns (const char *)
If your want to change the result, make a copy, or use [inString
getCString:buffer]
Tony Cate wrote:
warning: initialization discards qualifiers from pointer target type
This is the line causing it: char* cInString = [inString cString];
The code seems to run alright, but I9d like to understand what the problem
is and fix it. I9ve poked around on Google and gotten 10 pages of hits, but
they9re all compiler dumps. Can anyone shed some light on this?
_______________________________________________
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.
_______________________________________________
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.