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


I am well aware of the -Wall flag, but nevertheless, it may be easier
for people to enable ALL warnings and specifically disable those they
wish to ignore (such as -Weff-c++, in your case) using the -Wno-* flags.

I personally use -Wall -W, but I would welcome such a flag. Indeed, no
one need use it should they wish not to do so; neither should it replace
the -Wall flag, but it should exist if someone wants to use it, at their
option.

Stephano Mariani

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


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

Some warnings are particular perverse and enforce a particular coding
style (-Weff-c++ comes to mind).

Others, are valid for almost all code, and are certainly valid for ALL
code maintained by those who wish to eliminate code that might be
erroneous.  But we already have a name for that:

-Wall.

-Tim



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