[Bug middle-end/19430] taking address of a var causes missing uninitialized warning
vincent-gcc at vinc17 dot net
gcc-bugzilla@gcc.gnu.org
Thu Mar 2 13:23:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19430
--- Comment #31 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
There's something I don't understand: Whether -Wuninitialized or
-Wmaybe-uninitialized is used, I don't see any difference in the behavior of
GCC between
[...]
if (bar (i)) {
baz (&j);
}
[...]
and
[...]
if (bar (i)) {
j = 1;
}
[...]
In any case, no warnings are generated. So, the problem here is not related to
whether the address of j is taken, but to something else.
More information about the Gcc-bugs
mailing list