Dear Peers,
I am trying to figure out how to avoid the follow warnings when I compile my
source code...
act.imp.c: In function 'do_timecmd':
act.imp.c:377 warning: int format, __time_t arg (arg3)
act.imp.c:377: warning: int format, __time_t arg (arg 4)
I am fairly sure this is due to a formatting problem. You'll see what I
mean,
here is the exact code that causes the two errors:
<---------------------------------------------------------->
sprintf(report,"Timeing took %d.%06d
seconds.\r\n",etime.tv_sec,etime.tv_usec);
send_to_char(report,ch);
<---------------------------------------------------------->
I remember that you need to do something different with the time items
before
running it through any kind of printf or what not. Maybe there is even a
different print command to be used. Anyway, the whole things WORKS, but I
hate having any warnings at all when I compile. Warning now, error later as
we all know. =)
Thanks for the time,
Jason
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT