Aaron Schrab <[EMAIL PROTECTED]>:

> > > There a couple of compiler warnings:-
> > >     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl  -I../intl  -Wall -pedantic 
>-g -O2 -c imap.c
> > >     imap.c: In function `imap_check_mailbox':
> > >     imap.c:1157: warning: `t' might be used uninitialized in this function
> > 
> > This is an over-eager gcc.  The variable is not used
> > uninitialized.
> 
> Still, it would probably be a good idea to prevent the warning.
> Spurious warnings can mask ones that are real problems.

I don't like warnings, either.

--- imap.c.orig Wed Mar  8 10:01:44 2000
+++ imap.c      Thu Mar 30 11:50:06 2000
@@ -1154,13 +1154,8 @@
 {
   char buf[LONG_STRING];
   static time_t checktime=0;
-  time_t t;
+  time_t t = 0; /* to avoid compiler warning */
 
-  /* 
-   * gcc thinks it has to warn about uninitialized use
-   * of t.  This is wrong.
-   */
-  
   if (ImapCheckTimeout)
   { 
     t = time(NULL);

Reply via email to