From 89820a1a73cf24e5a901484dfb51f3a0ba587a73 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Fri, 24 Mar 2023 08:55:53 -0400 Subject: [PATCH] [#225] Fix compiler complaint about atomic src/bin/dhcp4/tests/kea_controller_unittest.cc src/bin/dhcp6/tests/kea_controller_unittest.cc --- src/bin/dhcp4/tests/kea_controller_unittest.cc | 2 +- src/bin/dhcp6/tests/kea_controller_unittest.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/dhcp4/tests/kea_controller_unittest.cc b/src/bin/dhcp4/tests/kea_controller_unittest.cc index d164a23678..82ca8fa940 100644 --- a/src/bin/dhcp4/tests/kea_controller_unittest.cc +++ b/src/bin/dhcp4/tests/kea_controller_unittest.cc @@ -230,7 +230,7 @@ public: void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms, std::function cond = std::function()) { IntervalTimer timer(*io_service); - std::atomic stopped = false; + std::atomic stopped(false); timer.setup([&io_service, &stopped]() { stopped = true; io_service->stop(); diff --git a/src/bin/dhcp6/tests/kea_controller_unittest.cc b/src/bin/dhcp6/tests/kea_controller_unittest.cc index d932d42236..bb09ca3903 100644 --- a/src/bin/dhcp6/tests/kea_controller_unittest.cc +++ b/src/bin/dhcp6/tests/kea_controller_unittest.cc @@ -217,7 +217,7 @@ public: void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms, std::function cond = std::function()) { IntervalTimer timer(*io_service); - std::atomic stopped = false; + std::atomic stopped(false); timer.setup([&io_service, &stopped]() { stopped = true; io_service->stop(); -- 2.47.2