This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: -Wall by default


On Thu, Apr 5, 2012 at 11:46 AM, Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
> On Thu, Apr 5, 2012 at 4:39 AM, Richard Guenther
> <richard.guenther@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]