From c8d88bf26e4c4c0eeddbf6a9dc184f28d4ef85e4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 16 Apr 2020 08:44:10 +0100 Subject: [PATCH] libstdc++: Fix -Wunused-parameter warning in test * testsuite/20_util/unsynchronized_pool_resource/allocate.cc: Remove name of unused parameter. --- libstdc++-v3/ChangeLog | 5 +++++ .../20_util/unsynchronized_pool_resource/allocate.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f9e4c2d87dd..cd3bbca35ba 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2020-04-16 Jonathan Wakely + + * testsuite/20_util/unsynchronized_pool_resource/allocate.cc: Remove + name of unused parameter. + 2020-04-15 Jonathan Wakely * 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 b3bb955db7c..5bf20cf262c 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; } }; -- 2.30.2