This is the mail archive of the
mailing list for the GCC project.
Re: a warning to implement
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: aoliva at redhat dot com, pcarlini at unitus dot it, coola at ngs dot ru, gcc at gcc dot gnu dot org
- Date: 03 Feb 2002 09:49:11 +0100
- Subject: Re: a warning to implement
- Organization: CodeSourcery, LLC
- References: <20020203000910.CECE1F28F3@nile.gnat.com>
firstname.lastname@example.org (Robert Dewar) writes:
| <<Such usage is explicitly allowed in the C and C++ Standards. I'll
| grant you it's of dubious use, but one of the legal uses I can think
| for it is to avoid getting a warning about a variable being used
| uninitialized when you know for sure that it is not, but the compiler
| can't tell as much. For example:
| Obviously this dubious use should generate a warning,
Well, that construct have been debated to death in the C++ committee.
And given the length of the debate and the opinions expressed there I
would certainly *not* characterize it as obviously dubious. I would
object to have it enabled by -Wall.