From 532722bed36bba8929338aaf84819de21510c12a Mon Sep 17 00:00:00 2001 From: Magnus Fromreide Date: Fri, 21 Mar 2003 21:32:45 +0100 Subject: [PATCH] * testsuite/testsuite_hooks.h: Fix warning nits. From-SVN: r64678 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/testsuite_hooks.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1d7d2d84aef..71793c6d065 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2003-03-21 Magnus Fromreide + + * testsuite/testsuite_hooks.h: Fix warning nits. + 2003-03-19 Alexandre Oliva * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add): diff --git a/libstdc++-v3/testsuite/testsuite_hooks.h b/libstdc++-v3/testsuite/testsuite_hooks.h index 28ff245c482..da397e3bdfd 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/testsuite_hooks.h @@ -247,7 +247,6 @@ namespace __gnu_cxx_test copy_tracker(const copy_tracker& rhs) : id_(rhs.id()), throw_on_copy_(rhs.throw_on_copy_) { - int kkk = throw_on_copy_; if (throw_on_copy_) copy_constructor::throw_on(copy_constructor::count() + 1); copy_constructor::mark_call(); @@ -264,6 +263,7 @@ namespace __gnu_cxx_test if (rhs.throw_on_copy_) assignment_operator::throw_on(assignment_operator::count() + 1); assignment_operator::mark_call(); + return *this; } ~copy_tracker() @@ -302,7 +302,7 @@ namespace __gnu_cxx_test inline bool operator==(const copy_tracker& lhs, const copy_tracker& rhs) { return lhs.id() == rhs.id(); } -}; // namespace __gnu_cxx_test +} // namespace __gnu_cxx_test namespace std { -- 2.30.2