This is the mail archive of the
mailing list for the GCC project.
Re: RFC: -Wall by default
On Thu, Apr 5, 2012 at 5:16 AM, Arnaud Charlet <email@example.com> wrote:
>> From the list I gave earlier:
>> ? -Wformat
>> ? -Wimplicit
>> ? -Wreturn-type
>> ? -Wsequence-point
>> ? -Wswitch
>> ? -Waddress
>> ? -Wstrict-aliasing
>> ? -Wenum-compare
>> ? -Wreorder
>> ? -Wpointer-sign
> OK, the above list looks reasonable to me at least as a starting point
> that could be a bit refined (not sure -Wstrict-aliasing is so useful by
> default for instance for legacy code), certainly much more reasonable
> than 'enable -Wall by default', since as I said, switches such as
> -Wuninitialized may generate lots of false positives, annoying people.
by the way, at the exception of a very tiny percentage,
what actually is in -Wall is far more reasonable that an abstract
debate about a warning by default might make it sound.