Re: Changing World Files [Offsides as well]

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/02/97


On Tue, 2 Dec 1997, StormeRider wrote:

>interpreter.c:1537: warning: passing arg 1 of `interpret_colors' discards
>`const' from pointer target type
>
>char    *interpret_colors(char *, bool);

You're passing a constant string as a non-constant string.  Change the
function to accept (const char *, bool) and you should be ok.  If you see
"assignment to read-only location" after that change then the function
needs to change the variable and you either have to make the string
non-constant or fix the function to use a temporary copy of the string.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST