------- Comment #6 from ianw at vmware dot com 2008-04-28 22:28 ------- (In reply to comment #5) > (In reply to comment #4) > > Oh, just to be clear, my point was if (a=10) warns, but the extra > > parenthesis > > hide the warning. > > That is by design.
Ok, I did try looking but is that documented anywhere? It would seem to have ramifications for people that do things like make an ASSERT statement something like #define ASSERT(v) {if (!(v))} A quick search on google codesearch showed this was a very common idiom... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25733