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

use more granular suppressions in selfcheck and prefer inline suppressions #5703

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

Needs #5531 merged first.

@firewave
Copy link
Collaborator Author

firewave commented Nov 26, 2023

I did not clean up any unmatched inline suppressions. I would like to hold that off until https://trac.cppcheck.net/ticket/12070 is implemented. Unfortunately the suppression code gives me headaches (even more than usual) so I didn't take a stab at it yet. Those messages would also not show up until #3090 is merged.

@firewave firewave marked this pull request as ready for review November 27, 2023 11:13
Copy link
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

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

looks ok to me. I don't feel strongly about those shadowFunction.. it is a bit of a code smell to shadow a function but on the other hand it's also good to use the optimal name for a variable. if we use an unoptimal name for a variable that is not good.

@firewave
Copy link
Collaborator Author

firewave commented Dec 1, 2023

looks ok to me. I don't feel strongly about those shadowFunction.. it is a bit of a code smell to shadow a function but on the other hand it's also good to use the optimal name for a variable. if we use an unoptimal name for a variable that is not good.

That's why I didn't try to fix them - yet. Will do in an upcoming PR.

In general if there are warnings we do not want to address in our code we should no reporting them. IMO this does not apply to this warning.

On a side note - it seems no compiler warns about this.

@firewave firewave merged commit 4182f94 into danmar:main Dec 1, 2023
68 checks passed
@firewave firewave deleted the selfcheck-granular branch December 1, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants