This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for Re: Inappropriate Warning Cannot Be Turned Off
- To: Phil Edwards <pedwards at disaster dot jaj dot com>, gcc-patches at gcc dot gnu dot org
- Subject: Re: patch for Re: Inappropriate Warning Cannot Be Turned Off
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Wed, 07 Jun 2000 09:54:45 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200006062137.RAA01514@disaster.jaj.com>
Phil Edwards wrote:
>
> > > Hum, -Wnotanidiot should turn it off, though, we can debate the
> > > spelling.
> As a lighthearted volunteer, far be it from me to refuse to implement
> features with ridiculous names.
> + { "-Wnotanidiot", "Don't warn about choices of conversion sequences during overload resolution" },
I know Mike was being silly with `notanidiot's spelling, I was going
to suggest the same thing, spelt `-Wexpert'. The implication of
-Wnotanidiot is that anyone who doesn't turn it on is an idiot,
we'll alienate our user base, and they'll turn the flag on anyway
-- then get confused when on conversion sequence is selected over another.
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.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org