public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -Wall not detecting uninitialized variables
@ 2011-09-07 16:34 sudhakar govindavajhala
  2011-09-07 16:37 ` Andrew Haley
  0 siblings, 1 reply; 4+ messages in thread
From: sudhakar govindavajhala @ 2011-09-07 16:34 UTC (permalink / raw)
  To: gcc-help

Hello all,

How come -Wall is not detecting unitialized variables?

Thanks,
Sudhakar

$cat test.c
#include <stdio.h>

int main() {
        int i;
        printf(" hi sud %d \n", i);
        return 0;

}

$gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$gcc -Wall test.c
$g++ -Wall test.c
$

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-08  2:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-07 16:34 -Wall not detecting uninitialized variables sudhakar govindavajhala
2011-09-07 16:37 ` Andrew Haley
2011-09-07 16:44   ` Axel Freyn
2011-09-08  2:48     ` sudhakar govindavajhala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).