This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rename -W to -Wextra ?
- From: "Wheeler, Fred (Research)" <wheeler at crd dot ge dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Cc: "'phil at jaj dot com'" <phil at jaj dot com>
- Date: Mon, 3 Jun 2002 10:07:20 -0400
- Subject: Re: Rename -W to -Wextra ?
Greetings,
I posted this suggestion years ago, and am repeating it since it is related to the current warning
option (-Wextra) discussion. The original post is at
http://gcc.gnu.org/ml/gcc/1998-11/msg00580.html
The original suggestion is repeated below. There was some follow-up discussion that is still
available on the archives.
-----------------------------------------------------------
In the interest of less messy command lines I suggest a new option for
gcc: -Wallall. Right now -Wall adds about a dozen important -W*
options. I think -Wallall should add absolutely every -W* option that
exists now or is added in the future. Common usage would be to use
the -Wallall option to add all options and then remove unwanted
warning options with -Wno-*, and specify specific arguments to options
like -Wlarger-than-NNN.
Example:
gcc -Wallall -Wno-error -Wlarger-than-32 -Wno-aggregate-return ...
Regards,
Fred Wheeler