Re: [CODE][HELP] do_bury/do_dig errors

From: Eric L. Helvey (helver@newwave.net)
Date: 09/29/96


It's one of two things... there's either a const flag on the arg you're 
sending to send_to_char, or there's a const flag in send_to_char that 
you're violating.  ie, trying to change the value of a variable you've 
defined to be constant.

Helver

On Sun, 29 Sep 1996, Amy & Ryan Biggs wrote:

> Everytime I compile, I get the following errors from the do_bury and do_dig
> that was posted here.  They still work and the MUD still fully compiles,
> but I just hate seeing these things when I'm compiling.
> 
> act.other.c: In function `do_bury':
> act.other.c:1123: warning: passing arg 1 of `send_to_char' discards `const'
> from
>  pointer target type
> act.other.c:1125: warning: passing arg 1 of `act' discards `const' from pointer
> target type
> act.other.c:1133: warning: passing arg 1 of `send_to_char' discards `const'
> from
>  pointer target type
> act.other.c:1135: warning: passing arg 1 of `act' discards `const' from pointer
> target type
> act.other.c: In function `do_dig':
> act.other.c:1162: warning: passing arg 1 of `send_to_char' discards `const'
> from
>  pointer target type
> act.other.c:1164: warning: passing arg 1 of `act' discards `const' from pointer
> target type
> act.other.c:1176: warning: passing arg 1 of `send_to_char' discards `const'
> from
>  pointer target type
> act.other.c:1178: warning: passing arg 1 of `act' discards `const' from pointer
> target type
> 
> Any ideas on what to do to fix these?
> 
> The Husband and Wife team from heck!
> E-mail: nauvie@netcom.ca
> Amy Biggs:  http://www.geocities.com/SiliconValley/3461
> Ryan Biggs: http://www.geocities.com/SiliconValley/3460
> 
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
> 
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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