]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[751-compiler-warning-in-ifacemgr-unit-tests] Addressed iface_mgr_unittest.cc warnings 751-compiler-warning-in-ifacemgr-unit-tests tmark-pre-35
authorFrancis Dupont <fdupont@isc.org>
Mon, 7 Oct 2019 18:27:39 +0000 (20:27 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 7 Oct 2019 18:27:39 +0000 (20:27 +0200)
src/lib/dhcp/tests/iface_mgr_unittest.cc

index e372c758b9a468f0e4703ff0c8fa4828a8e79b0d..c206e5e1e084163911274a74153df82729692a93 100644 (file)
@@ -681,7 +681,7 @@ public:
         scoped_ptr<NakedIfaceMgr> 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<NakedIfaceMgr> 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);