This is the mail archive of the 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: Criteria for a warning to be in -Wall? (was: Re: a warning to implement)

On Wed, Feb 06, 2002 at 12:08:40PM -0800, Joe Buck wrote:
> Tim writes:
> > Let's discuss what the conditions should be for a warning to be in
> > -Wall, and then document it.  If that ends up meaning -Wnested-externs
> > should be added, so be it.
> Many projects and development teams, both free and non-free, require
> clean compiles with -Wall.  What this means is that if we put an option
> in -Wall, we are in a sense setting policy, the policy being that we
> are asserting rather strongly that "you shouldn't do that".

Which argues in favor of a documented set of criteria instead of an ad
hoc set of warnings.  The criteria can be designed with this common
use in mind.  In fact, it argues in favor of two I've mentioned before:

1) low false positive rate on "reasonable" code

2) avoidable by replacement with an equivalent construct

Once we all mostly agree what -Wall means, hopefully "x should/should
not be in -Wall" can be argued based on facts and principles, not


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