mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Removed unused parameter warnings.
This commit is contained in:
@@ -74,7 +74,7 @@ struct avltree_node_checker
|
|||||||
const return_type& check_return_left, const return_type& check_return_right,
|
const return_type& check_return_left, const return_type& check_return_right,
|
||||||
return_type& check_return)
|
return_type& check_return)
|
||||||
{
|
{
|
||||||
int height_diff = check_return_right.height - check_return_left.height;
|
const int height_diff = check_return_right.height - check_return_left.height; (void)height_diff;
|
||||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(
|
BOOST_INTRUSIVE_INVARIANT_ASSERT(
|
||||||
(height_diff == -1 && node_traits::get_balance(p) == node_traits::negative()) ||
|
(height_diff == -1 && node_traits::get_balance(p) == node_traits::negative()) ||
|
||||||
(height_diff == 0 && node_traits::get_balance(p) == node_traits::zero()) ||
|
(height_diff == 0 && node_traits::get_balance(p) == node_traits::zero()) ||
|
||||||
|
@@ -211,7 +211,7 @@ class bounded_allocator
|
|||||||
pointer allocate(size_t n)
|
pointer allocate(size_t n)
|
||||||
{
|
{
|
||||||
assert(inited());
|
assert(inited());
|
||||||
assert(n == 1);
|
assert(n == 1);(void)n;
|
||||||
pointer p;
|
pointer p;
|
||||||
unsigned char i;
|
unsigned char i;
|
||||||
for (i = 0; i < max_offset && m_in_use[i]; ++i);
|
for (i = 0; i < max_offset && m_in_use[i]; ++i);
|
||||||
@@ -224,7 +224,7 @@ class bounded_allocator
|
|||||||
void deallocate(pointer p, size_t n)
|
void deallocate(pointer p, size_t n)
|
||||||
{
|
{
|
||||||
assert(inited());
|
assert(inited());
|
||||||
assert(n == 1);
|
assert(n == 1);(void)n;
|
||||||
assert(m_in_use[p.m_offset]);
|
assert(m_in_use[p.m_offset]);
|
||||||
m_in_use[p.m_offset] = false;
|
m_in_use[p.m_offset] = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user