2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[751-compiler-warning-in-ifacemgr-unit-tests] Addressed iface_mgr_unittest.cc warnings

This commit is contained in:
Francis Dupont
2019-10-07 20:27:39 +02:00
parent e0e0fd462e
commit cf6a766d28

View 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);