[Bug c/40635] bogus name and location in 'may be used uninitialized' warning

antonio dot weber at stud dot fh-regensburg dot de gcc-bugzilla@gcc.gnu.org
Sun Jul 5 10:30:00 GMT 2009



------- Comment #1 from antonio dot weber at stud dot fh-regensburg dot de  2009-07-05 10:29 -------
I only wanted to confirm this report. The same behaviour with gcc 4.3.2 and a
build from yesterdays svn

%> gcc -O2 -Wall -c ~/test.c
~/test.c: In function »server_init«:
~/test.c:38: warning: 's42' may be used uninitialized in this function

%> gcc --version
gcc (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.

%> ./bin/gcc -O2 -Wall -c ~/test.c
~/test.c: In function »server_init«:
~/test.c:38:8: warning: 's42' may be used uninitialized in this function

%> ./bin/gcc --version
gcc (GCC) 4.5.0 20090704 (experimental)
Copyright (C) 2009 Free Software Foundation, Inc.


-- 


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



More information about the Gcc-bugs mailing list