]> gcc.gnu.org Git - gcc.git/commit
cvt.c (convert_to_void): Only warn about COND_EXPR if neither the second nor third...
authorIan Lance Taylor <iant@google.com>
Thu, 25 Jun 2009 19:07:49 +0000 (19:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 25 Jun 2009 19:07:49 +0000 (19:07 +0000)
commit0dae2d924dac1c080e85b92b1f71031dc67f606a
tree6dd494a0b52b156fce06810ff15c4cbbaf141216
parent98f80e918ed957896fe0fd1cf0329aa8d2f68feb
cvt.c (convert_to_void): Only warn about COND_EXPR if neither the second nor third operand has side effects.

cp/:
* cvt.c (convert_to_void): Only warn about COND_EXPR if neither
the second nor third operand has side effects.
testsuite/:
* g++.dg/warn/Wunused-16.C: New testcase.

From-SVN: r148950
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-16.C [new file with mode: 0644]
This page took 0.059512 seconds and 5 git commands to generate.