mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 14:04:36 +02:00
Avoid unused variables warnings in release mode
This commit is contained in:
@@ -92,8 +92,8 @@ struct rbtree_node_checker
|
|||||||
|
|
||||||
if (node_traits::get_color(p) == node_traits::red()){
|
if (node_traits::get_color(p) == node_traits::red()){
|
||||||
//Red nodes have black children
|
//Red nodes have black children
|
||||||
const node_ptr p_left(node_traits::get_left(p));
|
const node_ptr p_left(node_traits::get_left(p)); (void)p_left;
|
||||||
const node_ptr p_right(node_traits::get_right(p));
|
const node_ptr p_right(node_traits::get_right(p)); (void)p_right;
|
||||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_left || node_traits::get_color(p_left) == node_traits::black());
|
BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_left || node_traits::get_color(p_left) == node_traits::black());
|
||||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_right || node_traits::get_color(p_right) == node_traits::black());
|
BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_right || node_traits::get_color(p_right) == node_traits::black());
|
||||||
//Red node can't be root
|
//Red node can't be root
|
||||||
|
Reference in New Issue
Block a user