Skip to content

Commit

Permalink
Fixes #77 ("Suppress unused variable warnings on node_count (clang 15)")
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Dec 10, 2022
1 parent 8375620 commit 4a1f695
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion doc/intrusive.qbk
Expand Up @@ -3886,7 +3886,14 @@ to be inserted in intrusive containers are allocated using `std::vector` or `std

[section:release_notes Release Notes]

[section:release_notes_boost_1_80_00 Boost 1.80 Release]
[section:release_notes_boost_1_82_00 Boost 1.82 Release]

* Fixed bugs:
* [@https://github.com/boostorg/intrusive/pull/77 GitHub #77: ['Suppress unused variable warnings on node_count (clang 15)]]

[endsect]

[section:release_notes_boost_1_81_00 Boost 1.81 Release]

* Semi-intrusive hash containers rewritten to reduce compilation times and improve runtime performance.

Expand Down
2 changes: 1 addition & 1 deletion include/boost/intrusive/list.hpp
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion include/boost/intrusive/slist.hpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4a1f695

Please sign in to comment.