Paolo Bonzini <bonz...@gnu.org> writes:

> I don't think this warning can report anything that -Wuninitialized
> cannot report, so it should go in -Wc++-compat only.

For the record, it can, as in when compiling this case without
optimization.  This is not a strong example by any means.

extern void f2 (int *);
int
f1 ()
{
  goto lab1;
  {
    int i = 1;
    f2 (&i);
  lab1:
    return i;
  }
}

Ian

Reply via email to