Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_radar_object_tracker): fix shadowVariable #7945

Conversation

kobayu858
Copy link
Contributor

@kobayu858 kobayu858 commented Jul 10, 2024

Description

This is a fix based on cppcheck shadowVariable warnings

perception/autoware_radar_object_tracker/src/association/ssp/successive_shortest_path.cpp:331:14: style: Local variable 'v' shadows outer variable [shadowVariable]
    for (int v = 0; v < n_nodes; ++v) {
             ^

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jul 10, 2024
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kobayu858 kobayu858 requested a review from veqcc July 10, 2024 10:30
@kobayu858 kobayu858 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 10, 2024
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.56%. Comparing base (050fa29) to head (7a48049).
Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7945      +/-   ##
==========================================
- Coverage   28.74%   28.56%   -0.18%     
==========================================
  Files        1593     1609      +16     
  Lines      116848   117860    +1012     
  Branches    50027    50233     +206     
==========================================
+ Hits        33586    33669      +83     
- Misses      74221    75077     +856     
- Partials     9041     9114      +73     
Flag Coverage Δ *Carryforward flag
differential 1.20% <ø> (?)
total 28.76% <ø> (+0.02%) ⬆️ Carriedforward from a39cfb7

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@technolojin technolojin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kobayu858 kobayu858 merged commit 1a8f6f3 into autowarefoundation:main Jul 11, 2024
41 checks passed
@kobayu858 kobayu858 deleted the fix/cppcheck_shadowVariable_per-12 branch July 12, 2024 07:07
Ariiees pushed a commit to Ariiees/autoware.universe that referenced this pull request Jul 22, 2024
…ation#7945)

fix:shadowVariable

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants