[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug middle-end/19430] taking address of a var causes missing uninitialized warning



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: