Re: Disabling warning: suggest parentheses around && within ||

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andre Majorel wrote:
> On 2009-05-09 09:45 +0100, Andrew Haley wrote:
>> Andre Majorel wrote:
>>> Is there a way to have -Wall without all the
>>> "warning: suggest parentheses around && within ||" noise ?
>>> -Wno-parentheses works, and seems to be supported at least as far
>>> back as GCC 2.95, but probably also disables other, potentially
>>> useful, warnings.
>> It doesn't.  I just looked at the gcc source, and -Wno-parentheses
>> only affects "suggest parentheses around X in Y" warnings.
> 
> Meaning that it does. Some of those warnings are actually useful.

AFAIK all of them are.  You haven't explained why you like some of
them but not others.  As far as I can tell your complaint is wholly
arbitrary.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux