re PR libstdc++/13976 (ext/new_allocator.h:81: warning: unused parameter '__h')
authorPaolo Carlini <pcarlini@suse.de>
Mon, 2 Feb 2004 12:39:55 +0000 (12:39 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Feb 2004 12:39:55 +0000 (12:39 +0000)
2004-02-02  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r77111

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

index 8e8365aca3feb6a72653cf64c179de9a01639385..7b3df025412b16c6a9c0590445adef55b768c9e9 100644 (file)
@@ -1,3 +1,12 @@
+2004-02-02  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/13976
+       * include/ext/malloc_allocator.h (malloc_allocator::allocate):
+       Make the second parameter unnamed, to void unused parameter
+       warnings.
+       * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
+       * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
+
 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_algo.h: Additional minor tweaks.
index c8533b80c1a4698242535d6db40d216ea74bedc5..6939e56411a36f95a736f3a3b12c7352a3e45358 100644 (file)
@@ -77,7 +77,7 @@ namespace __gnu_cxx
       // NB: __n is permitted to be 0.  The C++ standard says nothing
       // about what the return value is when __n == 0.
       pointer
-      allocate(size_type __n, const void* __h = 0)
+      allocate(size_type __n, const void* = 0)
       { return static_cast<_Tp*>(malloc(__n * sizeof(_Tp))); }
 
       // __p is not permitted to be a null pointer.
index 1afd5de52253dbcf9c8d9e25d4067a2d8425385b..25c9cd21fd76b0fdb993d6a2c0a36b7783ed757b 100644 (file)
@@ -228,7 +228,7 @@ namespace __gnu_cxx
 
     public:
       pointer
-      allocate(size_t __n, const void* __h = 0)
+      allocate(size_t __n, const void* = 0)
       {
         /*
          * Although the test in __gthread_once() would suffice, we
index e52c82ed6de5df3400bf7e78d6994d0d901d2dc2..6ac41e577a9cae04cc5c4d7aa6a65efd2e84e013 100644 (file)
@@ -77,7 +77,7 @@ namespace __gnu_cxx
       // NB: __n is permitted to be 0.  The C++ standard says nothing
       // about what the return value is when __n == 0.
       pointer
-      allocate(size_type __n, const void* __h = 0)
+      allocate(size_type __n, const void* = 0)
       { return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); }
 
       // __p is not permitted to be a null pointer.