Skip to content

Commit f7a7954

Browse files
authored
Removed test_timers_manager clang warning (#2479)
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
1 parent f9c4894 commit f7a7954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclcpp/test/rclcpp/test_timers_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ TEST_F(TestTimersManager, check_one_timer_cancel_doesnt_affect_other_timers)
375375
// since typical users aren't going to mess around with the timer manager.
376376
t1 = TimerT::make_shared(
377377
1ms,
378-
[&t1_runs, &t1, cancel_iter]() {
378+
[ =, &t1_runs, &t1]() {
379379
t1_runs++;
380380
if (t1_runs == cancel_iter) {
381381
t1->cancel();

0 commit comments

Comments
 (0)