This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: -Wall by default
On Thu, Apr 5, 2012 at 4:51 AM, Richard Guenther
<richard.guenther@gmail.com> wrote:
>> Here is a (partial) list:
>> ?-Wformat
>> ?-Wchar-subscripts
>> ?-Wmissing-braces
>> ?-Wparentheses
>> ?-Wreturn-type
>> ?-Wsequence-point
>> ?-Wstrict-aliasing
>> ?-Wswitch
>> ?-Waddress
>> ?-Wstrict-overflow
>> ?-Warray-bounds
>> ?-Wvolatile-register
>> ?-Wunknown-pragmas
>> ?-Wuninitialized
>> ?-Wmaybe-uninitialized
>> ?-Wmain
>> ?-Wenum-compare
>> ?-Wsign-compare
>> ?-Wreorder
>> ?-Wc++0x-compat
>> ?-Wnarrowing
>> ?-Wtrigraphs
>> ?-Wcomments
>> ?-Wpointer-sign
>
> Are there more specific requests than "enable -Wall by default"? ?Are
> there requests to remove some options from -Wall? ?Are there requests
> to add some options to -Wall?
>
> Note that some of the above depend on optimization flag settings
> (and optimization happening). ?Those are not good candidates - I think
> good candidates are those that would still be fully operational with
> -fsyntax-only.
I am not sure -fsyntax-only is a good criteria.
-fsyntax-only limits the amount of work that the compiler does in terms
of code generation, but it should be orthogonal to diagnostic issues.
-- Gaby