From bb95a6f8cf16f9dd3b2844ea6cbc796ba8cedd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 14 Apr 2015 14:56:07 +0200 Subject: [PATCH] Avoid unused variables warnings in release mode --- include/boost/intrusive/rbtree_algorithms.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/intrusive/rbtree_algorithms.hpp b/include/boost/intrusive/rbtree_algorithms.hpp index ad9c765..00d9fe3 100644 --- a/include/boost/intrusive/rbtree_algorithms.hpp +++ b/include/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