[107] in 6.033-lab
Re: Warning messages
daemon@ATHENA.MIT.EDU (Kevin Fu)
Wed Feb 17 13:55:19 1999
To: Roger Hu <rogerh@MIT.EDU>
Cc: 6.033-lab@MIT.EDU
In-Reply-To: Your message of Wed, 17 Feb 1999 10:49:26 -0500.
<199902171549.KAA12601@zetapsi-2.mit.edu>
Date: Wed, 17 Feb 1999 13:55:08 EST
From: Kevin Fu <fubob@MIT.EDU>
Hi,
Thanks for the note. I'll pass it along to other students who may
encounter the same problem.
The TA implementation of async.c does not use "struct timeval". If
you choose a NULL timeout as an argument of select(), you shouldn't
get the warnings. Moreover, if you use the struct timeval, you might
be polling instead of using callbacks...
--------
Kevin E. Fu (fubob@mit.edu)
PGP key: finger fubob@monk.mit.edu
>To: 6.033-lab-tas@MIT.EDU
>Cc: rogerh@MIT.EDU
>Subject: Warning messages
>Date: Wed, 17 Feb 1999 10:49:26 EST
>
>Had to add these two include statements at the top of async.c to
>remove the warnings:
>
>#include <sys/time.h>
>#include <sys/types.h>
>
>Here are the warnings look like:
>
>bash$ make
>gcc -g -O -Wall -Werror -c async.c
>async.c: In function `cb_add':
>async.c:50: storage size of `tv' isn't known
>cc1: warnings being treated as errors
>async.c:58: warning: implicit declaration of function `FD_ZERO'
>async.c:59: warning: implicit declaration of function `FD_SET'
>async.c:60: warning: implicit declaration of function `select'
>async.c:61: warning: implicit declaration of function `FD_ISSET'
>
>Roger
>