Subject: Re: -Wno-parenthesis
To: Ross Harvey <ross@ghs.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 06/06/1999 17:50:57
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 :-)

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>