2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1415] Initialize bools in tests

To prevent warnings spit out by gcc.
This commit is contained in:
Marcin Siodelski
2020-09-15 18:17:15 +02:00
parent 38f142af43
commit e8c3f1afde

View File

@@ -150,7 +150,7 @@ TEST(FreeLeaseQueueTest, removeRange) {
ASSERT_NO_THROW(lq.addRange(range1));
ASSERT_NO_THROW(lq.addRange(range2));
bool removed;
bool removed = false;
// Expect true to be returned when the range is removed.
ASSERT_NO_THROW(removed = lq.removeRange(range1));
@@ -182,7 +182,7 @@ TEST(FreeLeaseQueueTest, removePrefixRange) {
ASSERT_NO_THROW(lq.addRange(range1));
ASSERT_NO_THROW(lq.addRange(range2));
bool removed;
bool removed = false;
// Expect true to be returned when the range is removed.
ASSERT_NO_THROW(removed = lq.removeRange(range1));