aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-11-13 23:02:22 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-11-13 23:02:22 +0000
commit6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a (patch)
tree35a0e350449c08ae2078981f28e0856aa02b5660
parentb6b18271072de794c8995aad95e835c76cafd5ae (diff)
downloadgcc-6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a.zip
gcc-6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a.tar.gz
gcc-6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/src/c++17/memory_resource.cc3
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index af68533..03aaeca 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
2018-11-13 Jonathan Wakely <jwakely@redhat.com>
+ * 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 b553606..cb91e51 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);