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
➜ Original Smaug Compile Warnings - 2
Original Smaug Compile Warnings - 2
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Azrith
(15 posts) Bio
|
Date
| Sat 15 Mar 2003 06:47 AM (UTC) |
Message
| He guys! I was compiling my mud when I decided to take a look at a few of the original warnings from smaug 1.4. All of the Else warnings were cake to care of since it just involved poor formatting. However there are two warnings which I am not totally sure about. 1 is in act_comm.c line 3359
ret = re_exec(what);
I am getting an implicit decleration error.
Then also in interp.c line 757
time_used.tv_sec, time_used.tv_usec );
Same error.
Any ideas on how I can get rid of them? :) They are my last warnings. Makes debugging easier when I know any warnings or errors come from my new code hehe.
Thanks!
Azrith | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 15 Mar 2003 07:04 AM (UTC) |
Message
| Implicit declaration means it has found a function call without a function prototype, so it is guessing it is a function returning an int.
You can avoid that by making sure the prototype (eg. for re_exec) is in one of the .h files (or the .c file itself) before the call. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
9,247 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top