From 33f1138d8ab09bf133b945647d9239befe297d5e Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Sat, 3 Jul 2010 23:09:25 +0000 Subject: fix warnings --- test/unit/expr/attribute_black.h | 8 ++++---- test/unit/expr/attribute_white.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/unit/expr') diff --git a/test/unit/expr/attribute_black.h b/test/unit/expr/attribute_black.h index c9fc1f50b..06c8decfc 100644 --- a/test/unit/expr/attribute_black.h +++ b/test/unit/expr/attribute_black.h @@ -248,8 +248,8 @@ public: Node* node = new Node(d_nodeManager->mkVar(booleanType)); bool val = true; - bool data0; - bool data1; + bool data0 = false; + bool data1 = false; BoolAttribute attr; TS_ASSERT(node->getAttribute(attr, data0)); @@ -258,8 +258,8 @@ public: TS_ASSERT(node->getAttribute(attr, data1)); TS_ASSERT_EQUALS(data1, val); - bool data2; - bool data3; + bool data2 = false; + bool data3 = false; CDBoolAttribute cdattr; TS_ASSERT(node->getAttribute(cdattr, data2)); TS_ASSERT_EQUALS(false, data2); diff --git a/test/unit/expr/attribute_white.h b/test/unit/expr/attribute_white.h index c07fb1b09..0aaf2dfc9 100644 --- a/test/unit/expr/attribute_white.h +++ b/test/unit/expr/attribute_white.h @@ -185,7 +185,7 @@ public: TS_ASSERT(c.hasAttribute(TestFlag1cd())); // test two-arg version of hasAttribute() - bool bb; + bool bb = false; Debug("boolattr", "get flag 1 on a (should be F)\n"); TS_ASSERT(a.getAttribute(TestFlag1cd(), bb)); TS_ASSERT(! bb); -- cgit v1.2.3