OSDN Git Service

PR c/21159
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 21:41:15 +0000 (21:41 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 21:41:15 +0000 (21:41 +0000)
commit778e3b560e7e231725b49cab0b886ab2f44f5bff
treece276778b8df2b8bd816052b690271a7aecc28d3
parent4d0e931faa7ab6bb3ebe39347667b74ffd1c460d
PR c/21159
* c-typeck.c (build_compound_expr): Don't warn for left-hand side
being a compound expression whose right-hand side is cast to void.

testsuite:
* gcc.dg/void-cast-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98886 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/void-cast-1.c [new file with mode: 0644]