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:
parent
b6b1827107
commit
6c4a1d38ba
|
@ -1,5 +1,8 @@
|
||||||
2018-11-13 Jonathan Wakely <jwakely@redhat.com>
|
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
|
* src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove
|
||||||
unused function.
|
unused function.
|
||||||
(bitset::get_first_unset()): Remove loop, if there's are unset bits
|
(bitset::get_first_unset()): Remove loop, if there's are unset bits
|
||||||
|
|
|
@ -940,7 +940,8 @@ namespace pmr
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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
|
const auto it
|
||||||
= std::lower_bound(_M_unpooled.begin(), _M_unpooled.end(), p);
|
= std::lower_bound(_M_unpooled.begin(), _M_unpooled.end(), p);
|
||||||
|
|
Loading…
Reference in New Issue