[Bug c/39612] Incorrect warning issued Re variable *is* used uninitialized in this function
tony at bakeyournoodle dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 2 04:35:00 GMT 2009
------- Comment #1 from tony at bakeyournoodle dot com 2009-04-02 04:35 -------
Created an attachment (id=17577)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17577&action=view)
Preprocess code to so problem
compile with: gcc -Os -Wall -Wundef -o /dev/null -c f.i
As you can see the 2 functions f1 and f2, are the same expect for the size of
the array. Only f2() generates the warning. -Os is needed, other -O levels do
not show the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39612
More information about the Gcc-bugs
mailing list