Skip to content

Commit 4847d1c

Browse files
committed
Suppress cppcheck 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.
1 parent d09711e commit 4847d1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/pre-commit.hook

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CPPCHECK_suppresses=" \
99
--suppress=missingIncludeSystem \
1010
--suppress=noValidConfiguration:fibdrv.c \
1111
--suppress=unusedFunction:fibdrv.c \
12+
--suppress=constParameterCallback:fibdrv.c \
1213
"
1314
CPPCHECK_OPTS="-I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses $CPPCHECK_unmatched ."
1415

0 commit comments

Comments
 (0)