This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-Wuninitialized regression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]