Patchwork [v3] Small testsuite patch for -Wall

login
register
mail settings
Submitter Paolo Carlini
Date July 11, 2011, 5:23 p.m.
Message ID <4E1B319E.9030702@oracle.com>
Download mbox | patch
Permalink /patch/104256/
State New
Headers show

Comments

Paolo Carlini - July 11, 2011, 5:23 p.m.
Hi,

tested x86_64-linux, committed.

Paolo.

/////////////////////////
2011-07-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_allocator.h (propagating_allocator<>::
	operator=(const propagating_allocator<>&)): Retun *this.

Patch

Index: testsuite/util/testsuite_allocator.h
===================================================================
--- testsuite/util/testsuite_allocator.h	(revision 176144)
+++ testsuite/util/testsuite_allocator.h	(working copy)
@@ -408,6 +408,7 @@ 
   	{
 	  static_assert(P2, "assigning propagating_allocator<T, true>");
 	  propagating_allocator(a).swap_base(*this);
+	  return *this;
   	}
 
       // postcondition: a.get_personality() == 0