From 9478ffef8cd8aec00601ccd04fedff499e73cdba Mon Sep 17 00:00:00 2001 From: Raffi Enficiaud Date: Thu, 26 Mar 2015 11:20:17 +0100 Subject: [PATCH] annoying warnings --- include/boost/test/impl/test_tree.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/test/impl/test_tree.ipp b/include/boost/test/impl/test_tree.ipp index 3c21c531..5aad9574 100644 --- a/include/boost/test/impl/test_tree.ipp +++ b/include/boost/test/impl/test_tree.ipp @@ -258,7 +258,7 @@ void test_suite::add( test_unit_generator const& gen, int timeout ) { test_unit* tu; - while(tu = gen.next()) + while((tu = gen.next()) != 0) add( tu, 0, timeout ); } @@ -268,7 +268,7 @@ void test_suite::add( test_unit_generator const& gen, decorator::collector& decorators ) { test_unit* tu; - while(tu = gen.next()) { + while((tu = gen.next()) != 0) { decorators.store_in( *tu ); add( tu, 0 ); }