aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-02-02 12:39:55 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-02-02 12:39:55 +0000
commit90f8b692489fb86dee69e8d5b1bf26553158e4be (patch)
tree23b519194e7dbc03a2097329ee8f018df59fa39e
parent6e937c1c5c91aa000bbb549e2dcd8290fcc20a7d (diff)
downloadgcc-90f8b692489fb86dee69e8d5b1bf26553158e4be.zip
gcc-90f8b692489fb86dee69e8d5b1bf26553158e4be.tar.gz
gcc-90f8b692489fb86dee69e8d5b1bf26553158e4be.tar.bz2
re PR libstdc++/13976 (ext/new_allocator.h:81: warning: unused parameter '__h')
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
-rw-r--r--libstdc++-v3/ChangeLog9
-rw-r--r--libstdc++-v3/include/ext/malloc_allocator.h2
-rw-r--r--libstdc++-v3/include/ext/mt_allocator.h2
-rw-r--r--libstdc++-v3/include/ext/new_allocator.h2
4 files changed, 12 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8e8365a..7b3df02 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/ext/malloc_allocator.h b/libstdc++-v3/include/ext/malloc_allocator.h
index c8533b8..6939e56 100644
--- a/libstdc++-v3/include/ext/malloc_allocator.h
+++ b/libstdc++-v3/include/ext/malloc_allocator.h
@@ -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.
diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h
index 1afd5de..25c9cd2 100644
--- a/libstdc++-v3/include/ext/mt_allocator.h
+++ b/libstdc++-v3/include/ext/mt_allocator.h
@@ -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
diff --git a/libstdc++-v3/include/ext/new_allocator.h b/libstdc++-v3/include/ext/new_allocator.h
index e52c82e..6ac41e5 100644
--- a/libstdc++-v3/include/ext/new_allocator.h
+++ b/libstdc++-v3/include/ext/new_allocator.h
@@ -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.