Compile warning, implicit declaration

Posted by Zeno on Tue 20 Jul 2004 08:28 PM — 1 posts, 5,165 views.

USA #0

act_wiz.c: In function `do_hstat':
act_wiz.c:11008: warning: implicit declaration of function `get_help'
act_wiz.c:11008: warning: assignment makes pointer from integer without a cast



void do_hstat( CHAR_DATA *ch, char *argument )
{
    HELP_DATA *pHelp;

    if ( (pHelp = get_help( ch, argument )) == NULL )
    {
        send_to_char( "No help on that word.\n\r", ch );
        return;
    }

    ch_printf( ch, "&WKeyword: &c%s\n\r&WLevel: &c%d\n\r", pHelp->keyword, pHelp->level );
    ch_printf( ch, "&WDesc:\n\r&c%s\n\r", pHelp->text );

  return;
}


The warning doesn't seem to make any sense. I talked this over with another programmer, but he had no idea either.

Why is it returning this warning?

[EDIT] Nevermind I forgot this at the top:

HELP_DATA       * get_help                      args(( CHAR_DATA *ch, char *argument ) );