Commit 6c4a1d38 by Jonathan Wakely Committed by Jonathan Wakely

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
parent b6b18271
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment