OSDN Git Service

* testsuite/testsuite_hooks.h: Fix warning nits.
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Mar 2003 20:32:45 +0000 (20:32 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Mar 2003 20:32:45 +0000 (20:32 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64678 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/testsuite_hooks.h

index 1d7d2d8..71793c6 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
+
+       * testsuite/testsuite_hooks.h: Fix warning nits.
+
 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
index 28ff245..da397e3 100644 (file)
@@ -247,7 +247,6 @@ namespace __gnu_cxx_test
     copy_tracker(const copy_tracker& rhs)
     : id_(rhs.id()), throw_on_copy_(rhs.throw_on_copy_)
     {
     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();
       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();
       if (rhs.throw_on_copy_)
         assignment_operator::throw_on(assignment_operator::count() + 1);
       assignment_operator::mark_call();
+      return *this;
     }
 
     ~copy_tracker()
     }
 
     ~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(); }
   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
 {
 
 namespace std
 {