call.c (avoid_sign_compare_warnings): New static function.
authorIan Lance Taylor <iant@google.com>
Thu, 25 Jun 2009 19:20:59 +0000 (19:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 25 Jun 2009 19:20:59 +0000 (19:20 +0000)
commit82a71a267ee8a794b34612b666ea989095485f6d
treed822664648292cfa79d34a59498d4e65fcfefcac
parent96be7a11070fd121d25f14c8fcc206c98ed63942
call.c (avoid_sign_compare_warnings): New static function.

cp/:
* call.c (avoid_sign_compare_warnings): New static function.
(build_new_op): Call it.
* typeck.c (cp_build_binary_op): Don't call warn_sign_compare if
TREE_NO_WARNING is set on either operand.
testsuite/:
* g++.dg/warn/Wsign-compare-3.C: New testcase.

From-SVN: r148952
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsign-compare-3.C [new file with mode: 0644]