summaryrefslogtreecommitdiff
path: root/boost/intrusive/rbtree_algorithms.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/intrusive/rbtree_algorithms.hpp')
-rw-r--r--boost/intrusive/rbtree_algorithms.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/intrusive/rbtree_algorithms.hpp b/boost/intrusive/rbtree_algorithms.hpp
index ad9c7658e3..00d9fe3b18 100644
--- a/boost/intrusive/rbtree_algorithms.hpp
+++ b/boost/intrusive/rbtree_algorithms.hpp
@@ -92,8 +92,8 @@ struct rbtree_node_checker
if (node_traits::get_color(p) == node_traits::red()){
//Red nodes have black children
- const node_ptr p_left(node_traits::get_left(p));
- const node_ptr p_right(node_traits::get_right(p));
+ const node_ptr p_left(node_traits::get_left(p)); (void)p_left;
+ 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_right || node_traits::get_color(p_right) == node_traits::black());
//Red node can't be root