Skip to content

Commit

Permalink
Suppress cppcheck warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blueskyson committed Jul 23, 2024
1 parent d09711e commit 4847d1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/pre-commit.hook
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CPPCHECK_suppresses=" \
--suppress=missingIncludeSystem \
--suppress=noValidConfiguration:fibdrv.c \
--suppress=unusedFunction:fibdrv.c \
--suppress=constParameterCallback:fibdrv.c \
"
CPPCHECK_OPTS="-I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses $CPPCHECK_unmatched ."

Expand Down

0 comments on commit 4847d1c

Please sign in to comment.