From 0b213838dc59cd053056b782d31d3f105b4682ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 16 Dec 2023 12:03:33 +0100 Subject: [PATCH] chore: Remove compiler warning about unused variable --- src/vendor/boost/intrusive/slist.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vendor/boost/intrusive/slist.hpp b/src/vendor/boost/intrusive/slist.hpp index ac64e413f..bbaa05a64 100644 --- a/src/vendor/boost/intrusive/slist.hpp +++ b/src/vendor/boost/intrusive/slist.hpp @@ -1936,7 +1936,9 @@ class slist_impl BOOST_INTRUSIVE_INVARIANT_ASSERT(!constant_time_size || this->priv_size_traits().get_size() == 0); return; } + #ifndef BOOST_ASSERT_IS_VOID size_t node_count = 0; + #endif const_node_ptr p = header_ptr; while (true) { @@ -1955,7 +1957,9 @@ class slist_impl break; } p = next_p; + #ifndef BOOST_ASSERT_IS_VOID ++node_count; + #endif } BOOST_INTRUSIVE_INVARIANT_ASSERT(!constant_time_size || this->priv_size_traits().get_size() == node_count); }