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
This commit is contained in:
Jonathan Wakely 2018-11-13 23:02:22 +00:00 committed by Jonathan Wakely
parent b6b1827107
commit 6c4a1d38ba
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);