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 5:16 AM, Arnaud Charlet <charlet@adacore.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.

-- Gaby


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