From fdfce0830a7a16d21fc10fd843cff9ab216e9536 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 4 Feb 2010 11:31:23 -0300 Subject: [PATCH] Avoid a warning about uninitialized variable in the tests --- test/buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/buffer.cpp b/test/buffer.cpp index 9a0039c..a420c2b 100644 --- a/test/buffer.cpp +++ b/test/buffer.cpp @@ -40,7 +40,8 @@ BOOST_AUTO_TEST_CASE( types_test ) BOOST_CHECK_EQUAL(v, 2); buffer::const_reference cr = v; BOOST_CHECK_EQUAL(cr, 2); - buffer::iterator i; + buffer b; + buffer::iterator i = b.end(); buffer::const_iterator ci = i; dummy(ci); buffer::size_type s = 5; -- 2.43.0