aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-04-16 08:44:10 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-04-16 08:44:10 +0100
commitc8d88bf26e4c4c0eeddbf6a9dc184f28d4ef85e4 (patch)
tree23c4262ce7835f27f1d822514f5db3a252f833f7
parente4658c7dbbe88f742c96e5f58ee4a6d549d642ca (diff)
downloadgcc-c8d88bf26e4c4c0eeddbf6a9dc184f28d4ef85e4.zip
gcc-c8d88bf26e4c4c0eeddbf6a9dc184f28d4ef85e4.tar.gz
gcc-c8d88bf26e4c4c0eeddbf6a9dc184f28d4ef85e4.tar.bz2
libstdc++: Fix -Wunused-parameter warning in test
* testsuite/20_util/unsynchronized_pool_resource/allocate.cc: Remove name of unused parameter.
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index f9e4c2d..cd3bbca 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-16 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/20_util/unsynchronized_pool_resource/allocate.cc: Remove
+ name of unused parameter.
+
2020-04-15 Jonathan Wakely <jwakely@redhat.com>
* include/bits/fs_dir.h (file_status): Define operator== for C++20.
diff --git a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc
index b3bb955..5bf20cf 100644
--- a/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc
+++ b/libstdc++-v3/testsuite/20_util/unsynchronized_pool_resource/allocate.cc
@@ -197,7 +197,7 @@ test06()
void do_deallocate(void* p, std::size_t bytes, std::size_t align)
{ std::pmr::new_delete_resource()->deallocate(p, bytes, align); }
- bool do_is_equal(const memory_resource& r) const noexcept
+ bool do_is_equal(const memory_resource&) const noexcept
{ return false; }
};