Skip to content

Commit

Permalink
Removed test_timers_manager clang warning (#2479)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Apr 4, 2024
1 parent f9c4894 commit f7a7954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/test/rclcpp/test_timers_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f7a7954

Please sign in to comment.