From: Leandro Lucarella Date: Thu, 4 Feb 2010 14:31:23 +0000 (-0300) Subject: Avoid a warning about uninitialized variable in the tests X-Git-Url: https://git.llucax.com/software/posixx.git/commitdiff_plain/fdfce0830a7a16d21fc10fd843cff9ab216e9536 Avoid a warning about uninitialized variable in the tests --- 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;