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?
Gabriel Dos Reis <dosreis@gmail.com> writes:
> Historically, many C programmers have resisted that idea (even when we could
> argue that it really is bad style programming.)
They have?(!)
This warning warns about: goto L; { int x = 3; L: ... }
but not about: goto L; { int x; L: ... }
right?
So... is the idea that there might be code that assigns to x after L:,
before the first use of x, making the warning superfluous?
-Miles
--
Twice, adv. Once too often.