This is the mail archive of the
mailing list for the GCC project.
Re: RFC: -Wall by default
On Sat, Apr 7, 2012 at 5:41 PM, Dave Korn <email@example.com> wrote:
> On 05/04/2012 10:46, Gabriel Dos Reis wrote:
>> On Thu, Apr 5, 2012 at 4:39 AM, Richard Guenther
>> <firstname.lastname@example.org> 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:
> ?Your list seems a bit short, here's what today's trunk build says for -Wall:
Thank you Dave for the correction.
>> -Warray-bounds (only with `-O2')
>> -Wenum-compare (in C/Objc; this is on by default in C++)
>> -Wimplicit-int (C and Objective-C only)
>> -Wimplicit-function-declaration (C and Objective-C only)
>> -Wmain (only for C/ObjC and unless `-ffreestanding')
>> -Wsign-compare (only in C++)
> ?IMHO we should move the -Wunused ones into -Wextra if we're going to turn on
> -Wall by default. ?The rest seem pretty reasonable defaults to me.
Even if we do not turn on -Wall by default, do you think we should
have -Wunused in -Wall?