This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should -Wjump-misses-init be in -Wall?
Paolo Bonzini <bonzini@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