This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rename -W to -Wextra ?
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Phil Edwards <phil at jaj dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 3 Jun 2002 13:18:25 +0100 (BST)
- Subject: Re: Rename -W to -Wextra ?
On Mon, 3 Jun 2002, Phil Edwards wrote:
> That's 20 separate options. And remember that they are for corner cases, so
> we'd end up with -Wunsigned-compared-against-zero-with-< and -Wempty-if-body
> and -Wsubscripting-an-array-declared-as-register...
Some things can probably go together. Others can go in existing options,
possibly in -Wall - for example, warnings for "a <= b <= c" could
reasonably be put in -Wparentheses.
> The idea of a single option to warn about "oddball things which are usually
> suspect, but not always" makes sense to me. It's just the spelling that
> GCC got wrong.
As an external option, like -Wall, yes. As an internal variable, I don't
like the use of extra_warnings to control many disparate things, even if
not everything has an external option to control it separately.
--
Joseph S. Myers
jsm28@cam.ac.uk