This is the mail archive of the gcc-bugs@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]

Re: patch for Re: Inappropriate Warning Cannot Be Turned Off


Nathan Sidwell wrote in various messages:
> Also, the meaning should be something like
>         "Do not warn about confusing and commonly misunderstood
>         parts of the standard"
> [perhaps the sense should be inverted, and the flag on by default]
> 
> That way we can augment other parts of the compiler too.  It shouldn't
> go into -Wall, as those warning (which I happen to like), can be turned
> off by suitable reworking of the source code.

I agree with all that, but especially that the sense should be inverted.
When you say `-Wwhatever' it implies that you are turning warnings *on*,
which isn't what's happening here.

> It just occurred to me that this should be called
>         -Wlanguage-lawyer

Oh, I do like that :-), but I think the non-default option to suppress
the message needs to be of the form `-Wno-something'.  My suggestion is

`-Wno-explications'
     Inhibit warnings about confusing and commonly misunderstood parts
     of the standard.

    John

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