Re: NEWBIE: warning C4133 C4013 when compiling

From: Jeff Maynard (jlm@he.net)
Date: 12/03/02


From: "cwilson2@bigpond.net.au"

> act.comm.c
> c:\circlemud\srcwin\act.comm.c(585) : warning C4133: 'function' :
> incompatible types - from 'char *' to 'struct char_data *'
> c:\circlemud\circlemud\srcwin\act.comm.c(585) : warning
> C4133: 'function' : incompatible types - from 'struct char_data *'
> to 'const char *'
> c:\circlemud\circlemud\srcwin\act.comm.c(587) : warning
> C4133: 'function' : incompatible types - from 'char *' to 'struct
> char_data *'
> c:\circlemud\circlemud\srcwin\act.comm.c(587) : warning
> C4133: 'function' : incompatible types - from 'struct char_data *'
> to 'const char *'
>
> Lines in Code are;
> send_to_char(CCRED(i->character, C_SPR), i->character);
> act(brag, FALSE, ch, 0, i->character, TO_VICT | TO_SLEEP);
> send_to_char(CCNRM(i->character, C_SPR), i->character);

If you're using bpl22 and I would gather that you are, the send_to_char
function has been changed and the i->character is the first parameter and
not the 2nd anymore.

send_to_char(i->character, CCRED(i->character, C_SPR))

> The other one is,
> c:\circlemud\srcwin\handler.c(67) : warning C4013: 'is_apart'
> undefined; assuming extern returning int
>
> Line in Code is;
> if(curtok && is_apart(str, curtok)){

I assume that is_apart is defined somewhere in your code if you're getting a
warning and not an error, so just find the declaration of the function and
add it towards the top of the handler.c file to remove this warning.  There
should be a set of external functions already defined there, so just add
this one.

Jeff

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT