On Thu, Apr 5, 2012 at 11:46 AM, Gabriel Dos Reis
<g...@integrable-solutions.net> wrote:
> On Thu, Apr 5, 2012 at 4:39 AM, Richard Guenther
> <richard.guent...@gmail.com> wrote:
>
>> Btw, it would be more reasonable to enable a subset of warnings that
>> we enable at -Wall by default.
>
> Which ones for example?
>
> 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.

Richard.

Reply via email to