]> git.llucax.com Git - software/posixx.git/commitdiff
Avoid a warning about uninitialized variable in the tests
authorLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 4 Feb 2010 14:31:23 +0000 (11:31 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 4 Feb 2010 17:56:21 +0000 (14:56 -0300)
test/buffer.cpp

index 9a0039cfb03c1196609daad712da10380825f5c4..a420c2b4c4e95991cb7160a02fa45b44f34dcfaa 100644 (file)
@@ -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;