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(system_monitor): fix unreadVariable #8372

Merged

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on cppcheck unreadVariable warnings.

system/system_monitor/src/cpu_monitor/intel_cpu_monitor.cpp:133:13: style: Variable 'level' is assigned a value that is never used. [unreadVariable]
  int level = DiagStatus::OK;
            ^

system/system_monitor/src/gpu_monitor/nvml_gpu_monitor.cpp:133:13: style: Variable 'level' is assigned a value that is never used. [unreadVariable]
  int level = DiagStatus::OK;
            ^

system/system_monitor/src/gpu_monitor/nvml_gpu_monitor.cpp:267:13: style: Variable 'level' is assigned a value that is never used. [unreadVariable]
  int level = DiagStatus::OK;
            ^

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 <[email protected]>
@kobayu858 kobayu858 requested a review from veqcc August 6, 2024 04:56
@github-actions github-actions bot added the component:system System design and integration. (auto-assigned) label Aug 6, 2024
Copy link

github-actions bot commented Aug 6, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

Copy link
Contributor

@ito-san ito-san left a comment

Choose a reason for hiding this comment

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

LGTM

@ito-san ito-san added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (a5d77b4) to head (99afd60).
Report is 11 commits behind head on main.

Files Patch % Lines
...stem_monitor/src/cpu_monitor/intel_cpu_monitor.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #8372       +/-   ##
==========================================
- Coverage   23.73%   0.00%   -23.74%     
==========================================
  Files        1378      46     -1332     
  Lines      101354    2985    -98369     
  Branches    38503     456    -38047     
==========================================
- Hits        24057       0    -24057     
+ Misses      74828    2985    -71843     
+ Partials     2469       0     -2469     
Flag Coverage Δ
differential 0.00% <0.00%> (?)
total ?

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

@kobayu858 kobayu858 merged commit e0fa943 into autowarefoundation:main Aug 9, 2024
29 of 30 checks passed
technolojin pushed a commit to technolojin/autoware.universe that referenced this pull request Aug 13, 2024
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
fix:unreadVariable

Signed-off-by: kobayu858 <[email protected]>
Signed-off-by: xtk8532704 <[email protected]>
@kobayu858 kobayu858 deleted the fix/cppcheck_unreadVariable_sys-2 branch August 21, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned) tag: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.

2 participants