>> I looked at the gcc 4.1 info page, and I found no warnings to turn off >> that are specific for this case (I looked for the string "compar"). > >Yes, I believe there's no way. Which is why I think the least bad course >is -Wno-foo.
??? > if (foo = bar) ... > >gcc warns that you may have meant == instead of =, so if you really meant = >you can just write > > if ((foo = bar)) ... Probably this is just because it is then clear that the logical expression is the result of the expression inside the parentheses. I mean, not in fact a special case for gcc. In fact, I'd say it is good programming practice enclosing assignments in parentheses when the result is what you want. _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
