Skip to content
New issue

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

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

Already on GitHub? # to your account

Suppress cppcheck warning #17

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

blueskyson
Copy link
Contributor

Close #16.

The constParameterCallback warning occurs at fibdrv.c:75:33 when using cppcheck 2.13. Adding the const keyword as instructed would violate the definition of the read handler in file_operations, leading to compile error. Therefore, we suppress this warning.

The "constParameterCallback" warning occurs at fibdrv.c:75:33 when using
cppcheck 2.13. Adding the "const" keyword as instructed would violate the
definition of the "read" handler in "file_operations," leading to compile
error. Therefore, we suppress this warning.
@jserv jserv merged commit fe8d301 into sysprog21:master Jul 23, 2024
2 checks passed
@jserv
Copy link
Contributor

jserv commented Jul 23, 2024

Thank @blueskyson for contributing!

@blueskyson blueskyson deleted the fix-issue-16 branch July 23, 2024 16:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cppcheck 2.13 on Ubuntu 24.04 leads to constParameterCallback on pre-commit hook
2 participants