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: a warning to implement


Perhaps there should be an option to enable *all* warnings?

Stephano Mariani

-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of
Joe Buck
Sent: Tuesday, 5 February 2002 9 52
To: Gabriel Dos Reis
Cc: tim@hollebeek.com; Gabriel Dos Reis; Bernard Dautrevaux;
dewar@gnat.com; aoliva@redhat.com; coola@ngs.ru; gcc@gcc.gnu.org;
pcarlini@unitus.it
Subject: Re: a warning to implement

> Tim Hollebeek <tim@hollebeek.com> writes:
> 
> | > Please, note that I'm not saying that GCC should not have an
option to
> | > trigger the proposed warning. I'm saying that that shouldn't be on
by
> | > default in -Wall.
> | 
> | Then noone will have it on (because it is such a rare case they
won't
> | realize they might need it).
> 
> That argument is flawed:  there are plenty of warning not included in
> -Wall and yet actually used by people.

If we add a new warning to -Wall, people will discover bugs in their
code
quickly.  If we add a new warning but not to -Wall, 99% of gcc users
will
be unaware of the new warning and never use it.





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