[Bug middle-end/19430] taking address of a var causes missing uninitialized warning
- To: debian-gcc@lists.debian.org
- Subject: [Bug middle-end/19430] taking address of a var causes missing uninitialized warning
- From: "vincent-gcc at vinc17 dot net" <gcc-bugzilla@gcc.gnu.org>
- Date: Thu, 02 Mar 2017 13:23:12 +0000
- Message-id: <bug-19430-5724-rsWCGRLKG5@http.gcc.gnu.org/bugzilla/>
- In-reply-to: <bug-19430-5724@http.gcc.gnu.org/bugzilla/>
- References: <bug-19430-5724@http.gcc.gnu.org/bugzilla/>
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
Reply to: