|
Boost-Commit : |
From: jano_gaspar_at_[hidden]
Date: 2007-12-12 05:40:32
Author: jano_gaspar
Date: 2007-12-12 05:40:31 EST (Wed, 12 Dec 2007)
New Revision: 41987
URL: http://svn.boost.org/trac/boost/changeset/41987
Log:
circular_buffer: g++ warning fix
Text files modified:
trunk/boost/circular_buffer/debug.hpp | 2 +-
trunk/boost/circular_buffer/space_optimized.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/circular_buffer/debug.hpp
==============================================================================
--- trunk/boost/circular_buffer/debug.hpp (original)
+++ trunk/boost/circular_buffer/debug.hpp 2007-12-12 05:40:31 EST (Wed, 12 Dec 2007)
@@ -121,7 +121,7 @@
*/
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);
}
Modified: trunk/boost/circular_buffer/space_optimized.hpp
==============================================================================
--- trunk/boost/circular_buffer/space_optimized.hpp (original)
+++ trunk/boost/circular_buffer/space_optimized.hpp 2007-12-12 05:40:31 EST (Wed, 12 Dec 2007)
@@ -1230,7 +1230,7 @@
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<T, Alloc>::set_capacity(
ensure_reserve(new_capacity, new_size));
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk