diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-11-13 23:02:22 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-11-13 23:02:22 +0000 |
commit | 6c4a1d38baf7585617cc5d2b7f26c4fc2a2d926a (patch) | |
tree | 35a0e350449c08ae2078981f28e0856aa02b5660 | |
parent | b6b18271072de794c8995aad95e835c76cafd5ae (diff) | |
download | gcc-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/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/src/c++17/memory_resource.cc | 3 |
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); |