Subject: Re: -Wno-parenthesis
To: Ross Harvey <ross@ghs.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 06/07/1999 13:21:57
On Sun, Jun 06, 1999 at 05:50:57PM -0700, Jason Thorpe wrote:
> On Sun, 6 Jun 1999 13:22:57 -0700 (PDT) 
>  Ross Harvey <ross@ghs.com> wrote:
> 
>  > I know, C has too many operator priority levels, and I know, some of them
>  > are peculiar, such as + - over << >>. But -Wparentheses is too strict,
>  > e.g., it complains about not grouping && instructions just because there
>  > is an ||.
> 
> Actually, I really like that... it's caught a couple of bugs for me, more
> than once...
> 
>  > Plus, redundant parens are prohibited in KNF. (Unless `the statement is
>  > really confusing without them'. Not `confusing', but `really confusing'.)
> 
> I think that's a bug in the spec :-)
> 

If it's time to vote, I say "me too" :)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--