Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Compile warning, implicit declaration

Compile warning, implicit declaration

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 20 Jul 2004 08:28 PM (UTC)

Amended on Tue 20 Jul 2004 10:18 PM (UTC) by Zeno

Message

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 ) );

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,045 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.