From 9dc9a096557e3fc8fda7308de56a2fbb31be303e Mon Sep 17 00:00:00 2001 From: Stuart Miller Date: Mon, 11 Mar 2024 12:02:42 -0500 Subject: [PATCH] Address one more warning that showed up in the CI build log for MacOS. --- tests/TCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TCP.cpp b/tests/TCP.cpp index 6501029..60808b7 100644 --- a/tests/TCP.cpp +++ b/tests/TCP.cpp @@ -102,7 +102,7 @@ TEST_CASE("TCP server client") { {"mavlink_version", 6}}); std::promise> connection2_promise; - server_runtime.onConnection([&heartbeat2, &connection2_promise](const std::shared_ptr &connection) { + server_runtime.onConnection([&connection2_promise](const std::shared_ptr &connection) { connection2_promise.set_value(connection); });