You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux Version: Linux aspire7 6.8.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
How to Reproduce
The following output shows up after adding changes and executing the git commit:
fibdrv.c:75:33: style: Parameter 'offset' can be declared as pointer to const. However it seems that 'fib_read' is a callback function, if 'offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback]
loff_t *offset)
^
fibdrv.c:114:13: note: You might need to cast the function pointer here
.read = fib_read,
^
fibdrv.c:75:33: note: Parameter 'offset' can be declared as pointer to const
loff_t *offset)
^
nofile:0:0: information: Active checkers: 106/592 (use --checkers-report=<filename> to see details) [checkersReport]
Fail to pass static analysis.
Proposed Solution
Add --suppress=constParameterCallback:fibdrv.c to the Cppcheck commandline options.
The text was updated successfully, but these errors were encountered:
Environment
How to Reproduce
The following output shows up after adding changes and executing the git commit:
Proposed Solution
Add
--suppress=constParameterCallback:fibdrv.c
to the Cppcheck commandline options.The text was updated successfully, but these errors were encountered: