Pierce Lopez <pierce.lo...@gmail.com> writes: > I was just reading this page: http://gcc.gnu.org/gcc-4.4/changes.html > May I humbly draw your attention to this bullet point: > > -Wparentheses now warns about expressions such as (!x | y) and (!x & > y). Using explicit parentheses, such as in ((!x) | y)), silences this > warning > > Note the extra parenthesis in the last expression.
Good spot, thanks. I committed the patch below under the "obviously correct" rule. Richard Index: htdocs/gcc-4.4/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/changes.html,v retrieving revision 1.65 diff -u -p -r1.65 changes.html --- htdocs/gcc-4.4/changes.html 1 Apr 2009 19:53:21 -0000 1.65 +++ htdocs/gcc-4.4/changes.html 4 Apr 2009 09:29:54 -0000 @@ -318,7 +318,7 @@ <li><code>-Wparentheses</code> now warns about expressions such as <code>(!x | y)</code> and <code>(!x & y)</code>. Using explicit - parentheses, such as in <code>((!x) | y))</code>, silences this + parentheses, such as in <code>((!x) | y)</code>, silences this warning.</li> <li><code>-Wsequence-points</code> now warns within