-Wall not detecting uninitialized variables
sudhakar govindavajhala
sudhakarg79spam@gmail.com
Wed Sep 7 16:34:00 GMT 2011
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
$
More information about the Gcc-help
mailing list