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]

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


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

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