[Bug c/56523] -Wunitialized is described to be enabled by -Wall

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 4 16:16:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56523

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-04 16:16:16 UTC ---
On which basis do you think it doesn't? In practice, for a stupid example like
the below, with -Wall:

int main()
{
  int a;
  return a;
}

I get:

test.c: In function ‘main’:
test.c:4:3: warning: ‘a’ is used uninitialized in this function
[-Wuninitialized]



More information about the Gcc-bugs mailing list