From: Francis Dupont Date: Mon, 26 Mar 2018 14:25:35 +0000 (+0200) Subject: [master] Fixed maybe unitiliazed though an ASSERT_NO_THROW (picky compiler) X-Git-Tag: trac5577_base~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dc9540e59c12063688b3b42e0f43a7bd9860a98;p=thirdparty%2Fkea.git [master] Fixed maybe unitiliazed though an ASSERT_NO_THROW (picky compiler) --- diff --git a/src/lib/dhcpsrv/tests/database_connection_unittest.cc b/src/lib/dhcpsrv/tests/database_connection_unittest.cc index 0836610828..d150f29dd0 100644 --- a/src/lib/dhcpsrv/tests/database_connection_unittest.cc +++ b/src/lib/dhcpsrv/tests/database_connection_unittest.cc @@ -93,7 +93,7 @@ TEST_F(DatabaseConnectionCallbackTest, dbLostCallback) { /// We should be able to invoke the callback and glean /// the correct reconnect contorl parameters from it. - bool ret; + bool ret = false; ASSERT_NO_THROW(ret = datasrc.invokeDbLostCallback()); EXPECT_TRUE(ret); ASSERT_TRUE(db_reconnect_ctl_);