Skip to content

Commit 67a3ce2

Browse files
committed
fix(clang-tidy): re-enable clang-diagnostic-unused-but-set-variable
Signed-off-by: Vishal Chauhan <40782713+vish0012@users.noreply.github.com>
1 parent 54af299 commit 67a3ce2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.clang-tidy-ci

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ ExtraArgs:
3030
- -Wno-deprecated-declarations
3131
- -Wno-delete-non-abstract-non-virtual-dtor
3232
- -Wno-unused-private-field
33-
- -Wno-unused-but-set-variable
3433
- -Wno-deprecated-builtins

planning/motion_velocity_planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ double find_reach_time(
9292
double upper = max;
9393
double t;
9494
int iter = 0;
95-
for (int i = 0;; i++) {
95+
for (;;) {
9696
t = 0.5 * (lower + upper);
9797
const double fx = f(t, j, a, v, d);
9898
// std::cout<<"fx: "<<fx<<" up: "<<upper<<" lo: "<<lower<<" t: "<<t<<std::endl;

0 commit comments

Comments
 (0)