This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-Wuninitialized regression
- To: egcs at egcs dot cygnus dot com
- Subject: -Wuninitialized regression
- From: Andreas Schwab <schwab at issan dot cs dot uni-dortmund dot de>
- Date: 26 Apr 1999 10:31:47 +0200
The following example triggers a warning about result with -Wuninitialized
when compiled with egcs-current, but not with gcc 2.8.1:
int bar (void);
int foo (void)
{
int result;
int try = 0;
do
{
if (try++ > 50)
break;
result = bar ();
}
while (result >= 0);
return result == -1;
}
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org