forked from boostorg/intrusive
Fixes #77 ("Suppress unused variable warnings on node_count (clang 15)")
This commit is contained in:
1 parent
83756202f7
commit
4a1f695906
3 files changed
+10
-3
No files matched your search
@@ -1348,7 +1348,7 @@ class list_impl
|
||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(this->priv_size_traits().get_size() == 0);
|
||||
return;
|
||||
}
|
||||
size_t node_count = 0;
|
||||
size_t node_count = 0; (void)node_count;
|
||||
const_node_ptr p = header_ptr;
|
||||
while (true)
|
||||
{
|
||||
|
||||
@@ -1936,7 +1936,7 @@ class slist_impl
|
||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(!constant_time_size || this->priv_size_traits().get_size() == 0);
|
||||
return;
|
||||
}
|
||||
size_t node_count = 0;
|
||||
size_t node_count = 0; (void)node_count;
|
||||
const_node_ptr p = header_ptr;
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user