From 6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 13 Nov 2018 23:02:22 +0000 Subject: [PATCH] Fix unused parameter warnings introduced in earlier patch * src/c++17/memory_resource.cc (_Pool::deallocate): Restore attributes to parameters that are only used in assertions. From-SVN: r266091 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/src/c++17/memory_resource.cc | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index af68533baa2..03aaeca1af5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2018-11-13 Jonathan Wakely + * src/c++17/memory_resource.cc (_Pool::deallocate): Restore + attributes to parameters that are only used in assertions. + * src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove unused function. (bitset::get_first_unset()): Remove loop, if there's are unset bits diff --git a/libstdc++-v3/src/c++17/memory_resource.cc b/libstdc++-v3/src/c++17/memory_resource.cc index b553606f552..cb91e5147ce 100644 --- a/libstdc++-v3/src/c++17/memory_resource.cc +++ b/libstdc++-v3/src/c++17/memory_resource.cc @@ -940,7 +940,8 @@ namespace pmr } void - __pool_resource::deallocate(void* p, size_t bytes, size_t alignment) + __pool_resource::deallocate(void* p, size_t bytes [[maybe_unused]], + size_t alignment [[maybe_unused]]) { const auto it = std::lower_bound(_M_unpooled.begin(), _M_unpooled.end(), p);