This is the mail archive of the gcc-patches@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: PR 30437 [4.0/4.1/4.2/4.3 Regression] -Wno-all is rejected (try 2)


On Thu, Jan 25, 2007 at 11:25:28PM +0000, Manuel L?pez-Ib??ez wrote:
> On 25/01/07, FX Coudert <fxcoudert@gmail.com> wrote:
> 
> Maybe to disable -Wall warnings? Maybe because a project CFLAGS  have
> -Wall but you don't want to get warnings for a particular file, so you
> add -Wno-all when building that file? Why do we have Wno-* options at
> all then?

-Wall is a meta-option that turns on a large number of option.
You may want all -Wall options except -Wone-ring.  It is logical 
to have -Wno-one-ring, so you can do '-Wall -Wno-one-ring'.  It
is completely illogical to do "-Wall -Wno-all" on a command line.
Your project CLFAGS example make no sense.  The project 
would need to handle that one special file has an exception 
with or without -Wno-all, so you end up with a custom  build
(e.g. Makefile target).

The correct fix is to globally reject -Wno-all.
-- 
Steve


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