Re: Persistant Warning
Re: Persistant Warning
- Subject: Re: Persistant Warning
- From: Cameron Hayne <email@hidden>
- Date: Sat, 15 Jun 2002 03:53:52 -0400
Tony Cate <email@hidden> 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?
In this case, the String class documentation might have told you the
answer:
The cString method returns a (const char*)
It is the 'const' that the compiler is warning about.
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.