This is the mail archive of the
mailing list for the GCC project.
Re: RFC: -Wall by default
On 05/04/2012 10:46, Gabriel Dos Reis wrote:
> On Thu, Apr 5, 2012 at 4:39 AM, Richard Guenther
> <email@example.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:
Your list seems a bit short, here's what today's trunk build says for -Wall:
> -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.