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

CppCheck update suppress warning #10834

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test_code_integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
--force
--std=c++17
--inline-suppr
--suppress=cppcheckError
--suppress=missingInclude
--suppress=missingIncludeSystem
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes:

[nofile:0]:(information),[unmatchedSuppression],Unmatched suppression: cppcheckError

And the 6000 warnings like this (is there a better way to allow checking for missing includes?):

[src/ConvertInputFormat/main.cpp:51]:(information),[missingInclude],Include file: "EnergyPlus/InputProcessing/InputValidation.hh" not found.
[src/ConvertInputFormat/main.cpp:52]:(information),[missingIncludeSystem],Include file: <embedded/EmbeddedEpJSONSchema.hh> not found. Please note: Cppcheck does not need standard library headers to get proper results.

--suppress=unusedFunction:src/EnergyPlus/api/autosizing.cc
--suppress=unusedFunction:src/EnergyPlus/api/datatransfer.cc
--suppress=unusedFunction:src/EnergyPlus/api/func.cc
Expand Down