From f7a7954ae74f1b92164cbc21900b6cf89c5b8e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 4 Apr 2024 16:04:54 +0200 Subject: [PATCH] Removed test_timers_manager clang warning (#2479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- rclcpp/test/rclcpp/test_timers_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/test/rclcpp/test_timers_manager.cpp b/rclcpp/test/rclcpp/test_timers_manager.cpp index 90d321c188..ef7605aadc 100644 --- a/rclcpp/test/rclcpp/test_timers_manager.cpp +++ b/rclcpp/test/rclcpp/test_timers_manager.cpp @@ -375,7 +375,7 @@ TEST_F(TestTimersManager, check_one_timer_cancel_doesnt_affect_other_timers) // since typical users aren't going to mess around with the timer manager. t1 = TimerT::make_shared( 1ms, - [&t1_runs, &t1, cancel_iter]() { + [ =, &t1_runs, &t1]() { t1_runs++; if (t1_runs == cancel_iter) { t1->cancel();