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(diagnostic_graph_aggregator): fix cppcheck warning of functionStatic #8266

Conversation

taisa1
Copy link
Contributor

@taisa1 taisa1 commented Jul 30, 2024

Description

This is a fix based on cppcheck warning functionStatic.

system/diagnostic_graph_aggregator/src/common/graph/units.hpp:35:8: performance: inconclusive: Technically the member function 'diagnostic_graph_aggregator::UnitLink::initialize_status' can be static (but you may consider moving to unnamed namespace). [functionStatic]

Related links

How was this PR tested?

Only checked if build succeeded.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:system System design and integration. (auto-assigned) label Jul 30, 2024
Copy link

github-actions bot commented Jul 30, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@atsushi421 atsushi421 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.14%. Comparing base (2705a63) to head (c6da881).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8266      +/-   ##
==========================================
- Coverage   29.29%   29.14%   -0.16%     
==========================================
  Files        1609     1607       -2     
  Lines      119415   117391    -2024     
  Branches    51481    50504     -977     
==========================================
- Hits        34988    34213     -775     
+ Misses      75118    74004    -1114     
+ Partials     9309     9174     -135     
Flag Coverage Δ *Carryforward flag
differential 64.67% <ø> (?)
total 29.14% <ø> (-0.16%) ⬇️ Carriedforward from 316c2b6

*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.

@taisa1 taisa1 marked this pull request as ready for review July 30, 2024 10:19
@isamu-takagi
Copy link
Contributor

This function is prepared for future implementation. Since I plan to update member variables, please leave it as it is.

@taisa1
Copy link
Contributor Author

taisa1 commented Aug 6, 2024

I understand. To avoid it remaining as a warning, I changed it to suppress a warning with an inline comment. Could you check this? @isamu-takagi

Copy link
Contributor

@isamu-takagi isamu-takagi left a comment

Choose a reason for hiding this comment

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

LGTM

@atsushi421 atsushi421 merged commit 6fb8804 into autowarefoundation:main Aug 6, 2024
29 of 30 checks passed
@atsushi421 atsushi421 deleted the fix_function_static_diagnostic_graph_aggregator branch August 6, 2024 23:50
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…tic (autowarefoundation#8266)

* fix: deal with functionStatic warning

Signed-off-by: taisa1 <kento.osa@tier4.jp>

* suppress warning by comment

Signed-off-by: taisa1 <kento.osa@tier4.jp>

---------

Signed-off-by: taisa1 <kento.osa@tier4.jp>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…tic (autowarefoundation#8266)

* fix: deal with functionStatic warning

Signed-off-by: taisa1 <kento.osa@tier4.jp>

* suppress warning by comment

Signed-off-by: taisa1 <kento.osa@tier4.jp>

---------

Signed-off-by: taisa1 <kento.osa@tier4.jp>
Signed-off-by: xtk8532704 <1041084556@qq.com>
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.

3 participants