Original Smaug Compile Warnings - 2

Posted by Azrith on Sat 15 Mar 2003 06:47 AM — 2 posts, 10,816 views.

#0
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
Australia Forum Administrator #1
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.