Rename -W to -Wextra ?

Joseph S. Myers jsm28@cam.ac.uk
Mon Jun 3 05:18:00 GMT 2002


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



More information about the Gcc mailing list