This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Small sanity patch


Hello!

I found a little buglet that emitted warnings with high warning levels in
the test suite of libstdc++-v3 that this patch addresses.

I think it would qualify as obvious, should that not be the case then I
have to supply the assignment forms.

/MF
Index: testsuite_hooks.h
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/testsuite_hooks.h,v
retrieving revision 1.14
diff -c -3 -p -r1.14 testsuite_hooks.h
*** testsuite_hooks.h	8 Mar 2003 08:55:52 -0000	1.14
--- testsuite_hooks.h	21 Mar 2003 01:51:00 -0000
*************** namespace __gnu_cxx_test
*** 247,253 ****
      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();
--- 247,252 ----
*************** namespace __gnu_cxx_test
*** 264,269 ****
--- 263,269 ----
        if (rhs.throw_on_copy_)
          assignment_operator::throw_on(assignment_operator::count() + 1);
        assignment_operator::mark_call();
+       return *this;
      }
  
      ~copy_tracker()
*************** namespace __gnu_cxx_test
*** 302,308 ****
    inline bool
    operator==(const copy_tracker& lhs, const copy_tracker& rhs)
    { return lhs.id() == rhs.id(); }
! }; // namespace __gnu_cxx_test
  
  namespace std
  {
--- 302,308 ----
    inline bool
    operator==(const copy_tracker& lhs, const copy_tracker& rhs)
    { return lhs.id() == rhs.id(); }
! } // namespace __gnu_cxx_test
  
  namespace std
  {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]