diff --git a/include/boost/circular_buffer/debug.hpp b/include/boost/circular_buffer/debug.hpp index 50a6839..de30366 100644 --- a/include/boost/circular_buffer/debug.hpp +++ b/include/boost/circular_buffer/debug.hpp @@ -121,7 +121,7 @@ public: */ void unregister_iterator(const debug_iterator_base* it) const { const debug_iterator_base* previous = 0; - for (const debug_iterator_base* p = m_iterators; p != it; previous = p, p = p->next()); + for (const debug_iterator_base* p = m_iterators; p != it; previous = p, p = p->next()) {} remove(it, previous); } diff --git a/include/boost/circular_buffer/space_optimized.hpp b/include/boost/circular_buffer/space_optimized.hpp index 573e57f..6ba6800 100644 --- a/include/boost/circular_buffer/space_optimized.hpp +++ b/include/boost/circular_buffer/space_optimized.hpp @@ -1230,7 +1230,7 @@ private: if (new_size > new_capacity) { if (new_capacity == 0) new_capacity = 1; - for (; new_size > new_capacity; new_capacity *= 2); + for (; new_size > new_capacity; new_capacity *= 2) {} circular_buffer::set_capacity( ensure_reserve(new_capacity, new_size)); }