From 3e4a21022ef3836cc628a73f8e5c100fb4e08e48 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sat, 6 Aug 2022 13:04:42 +0500 Subject: [PATCH] Fix other unused warnings Signed-off-by: Vladislav Shchapov --- include/gtl/bit_vector.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gtl/bit_vector.hpp b/include/gtl/bit_vector.hpp index 7e2f495..3ab34a8 100644 --- a/include/gtl/bit_vector.hpp +++ b/include/gtl/bit_vector.hpp @@ -300,7 +300,7 @@ class storage { // ----------------------------------------------------------------------- template - void visit_all(F f) { + void visit_all([[maybe_unused]] F f) { size_t num_slots = slot_cnt(_sz); if constexpr (flags & vt::false_) { // set all bits to 0 @@ -320,7 +320,7 @@ class storage { size_t slot; for (slot=0; slot(s, m)); + [[maybe_unused]] const auto fs = f(oor_bits(s, m)); if constexpr (!(flags & vt::view)) if (s != fs) _s[slot] = fs & ~m; // mask last returned value so we don't set bits past end