From: Francis Dupont Date: Mon, 7 Oct 2019 18:27:39 +0000 (+0200) Subject: [751-compiler-warning-in-ifacemgr-unit-tests] Addressed iface_mgr_unittest.cc warnings X-Git-Tag: tmark-pre-35^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6a766d28c565bd4a0abe8631422dd9fdeb27ce;p=thirdparty%2Fkea.git [751-compiler-warning-in-ifacemgr-unit-tests] Addressed iface_mgr_unittest.cc warnings --- diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc index e372c758b9..c206e5e1e0 100644 --- a/src/lib/dhcp/tests/iface_mgr_unittest.cc +++ b/src/lib/dhcp/tests/iface_mgr_unittest.cc @@ -681,7 +681,7 @@ public: scoped_ptr ifacemgr(new NakedIfaceMgr()); if (use_queue) { - bool queue_enabled; + bool queue_enabled = false; data::ConstElementPtr config = makeQueueConfig(PacketQueueMgr4::DEFAULT_QUEUE_TYPE4, 500); ASSERT_NO_THROW(queue_enabled = ifacemgr->configureDHCPPacketQueue(AF_INET, config)); ASSERT_TRUE(queue_enabled); @@ -764,7 +764,7 @@ public: scoped_ptr ifacemgr(new NakedIfaceMgr()); if (use_queue) { - bool queue_enabled; + bool queue_enabled = false; data::ConstElementPtr config = makeQueueConfig(PacketQueueMgr6::DEFAULT_QUEUE_TYPE6, 500); ASSERT_NO_THROW(queue_enabled = ifacemgr->configureDHCPPacketQueue(AF_INET6, config)); ASSERT_TRUE(queue_enabled);