From eec9c9e45c3daf8a9f1aa2145ebb6a221f65c47a Mon Sep 17 00:00:00 2001 From: anonimal Date: Wed, 20 Feb 2019 07:30:44 +0000 Subject: [PATCH] unit_tests: resolve epee build warning (-Wunused-lambda-capture) The local variable is not required to be captured for this impl. --- tests/unit_tests/epee_levin_protocol_handler_async.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/epee_levin_protocol_handler_async.cpp b/tests/unit_tests/epee_levin_protocol_handler_async.cpp index 996451a8..b256b12c 100644 --- a/tests/unit_tests/epee_levin_protocol_handler_async.cpp +++ b/tests/unit_tests/epee_levin_protocol_handler_async.cpp @@ -264,7 +264,7 @@ TEST_F(positive_test_connection_to_levin_protocol_handler_calls, handler_initial TEST_F(positive_test_connection_to_levin_protocol_handler_calls, concurent_handler_initialization_and_destruction_is_correct) { const size_t connection_count = 10000; - auto create_and_destroy_connections = [this, connection_count]() + auto create_and_destroy_connections = [this]() { std::vector connections(connection_count); for (size_t i = 0; i < connection_count; ++i)