This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: patch for Re: Inappropriate Warning Cannot Be Turned Off
- To: gcc-patches at gcc dot gnu dot org (gcc-patches), gcc-bugs at gcc dot gnu dot org
- Subject: Re: patch for Re: Inappropriate Warning Cannot Be Turned Off
- From: John Marshall <john_w_marshall at palm dot com>
- Date: Wed, 7 Jun 2000 22:46:18 -0700 (PDT)
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