PR 30437 [4.0/4.1/4.2/4.3 Regression] -Wno-all is rejected (try 2)

Manuel López-Ibáñez lopezibanez@gmail.com
Thu Jan 25 23:32:00 GMT 2007


On 25/01/07, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
> On Thu, Jan 25, 2007 at 11:58:44PM +0100, FX Coudert wrote:
> > >I see that you committed this change without approval
> > >from a fortran maintainer nor approval from someone
> > >with global write privileges.
> >
> > So, Steve, would you mind explaining a bit your statement about
> > "incorrect and uncesseray"? It's not a trap or a trick question, I
> > just don't understand what you can mean by that.
> >
>
> The opposite of -Wall is simply to not include it on the command line.
> -Wall is a meta-option that turns on a large set of Warning options.
> If you don't want that large set of option then remove -Wall from
> CFLAGS (or FFLAGS or CXXFLAGS or ...)
>

By that rule, the opposite of any option is to not include it on the
command-line. So what is the point of having -Wno-* then?

> The proper fix for GCC would have been to add RejectNegative to
> all other frontend and common.opt.

If you want to prevent fortran users from using -Wno-all, then that is
your call. I could have implemented that as easily. I can have a patch
in minutes. Just say so.


Cheers,

Manuel.



More information about the Gcc-patches mailing list