[LLVMbugs] [Bug 4806] Missing warning for unused expression results with commas

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 11 23:11:43 PST 2010


John McCall <rjmccall at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from John McCall <rjmccall at apple.com> 2010-03-12 01:11:42 CST ---
"void(a), ++a;" is valid and clang is right to accept it.  I think you're
right, we shouldn't warn about it here;  I see no reason not to treat a
functional cast the same as a C-style cast in terms of suppressing unused-value

Committed in r98335.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list