PR libstdc++/13976 (continued)
authorPaolo Carlini <pcarlini@suse.de>
Mon, 2 Feb 2004 13:04:36 +0000 (13:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Feb 2004 13:04:36 +0000 (13:04 +0000)
2004-02-02  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/13976 (continued)
* include/ext/malloc_allocator.h (malloc_allocator::deallocate):
Make the second parameter unnamed, to void unused parameter
warnings.
* include/ext/new_allocator.h (new_allocator::deallocate): Ditto.

From-SVN: r77113

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/malloc_allocator.h
libstdc++-v3/include/ext/new_allocator.h

index 7b3df025412b16c6a9c0590445adef55b768c9e9..0eb760475dac31ae6855274b0065206836ae3840 100644 (file)
@@ -1,3 +1,11 @@
+2004-02-02  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/13976 (continued)
+       * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
+       Make the second parameter unnamed, to void unused parameter
+       warnings.
+       * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
+
 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/13976
index 6939e56411a36f95a736f3a3b12c7352a3e45358..2385159c59a3497ba4a31c56d20fe8506e9c651f 100644 (file)
@@ -82,7 +82,7 @@ namespace __gnu_cxx
 
       // __p is not permitted to be a null pointer.
       void
-      deallocate(pointer __p, size_type __n)
+      deallocate(pointer __p, size_type)
       { free(static_cast<void*>(__p)); }
 
       size_type
index 6ac41e577a9cae04cc5c4d7aa6a65efd2e84e013..4fee84f5f7cdaea9e3da280c3c02547a5ca4378d 100644 (file)
@@ -82,7 +82,7 @@ namespace __gnu_cxx
 
       // __p is not permitted to be a null pointer.
       void
-      deallocate(pointer __p, size_type __n)
+      deallocate(pointer __p, size_type)
       { ::operator delete(__p); }
 
       size_type