2025-09-13 17:22 ftp://ftp.de.debian.org/debian/pool/main/l/leds-alix/leds-alix_0.0.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 3 3 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: leds-alix-0.0.1/leds-alix.c:37:49: style: Parameter 'led_cdev' can be declared as pointer to const. However it seems that 'alix_led_set_1' is a callback function, if 'led_cdev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] leds-alix-0.0.1/leds-alix.c:66:20: note: You might need to cast the function pointer here leds-alix-0.0.1/leds-alix.c:37:49: note: Parameter 'led_cdev' can be declared as pointer to const leds-alix-0.0.1/leds-alix.c:46:49: style: Parameter 'led_cdev' can be declared as pointer to const. However it seems that 'alix_led_set_2' is a callback function, if 'led_cdev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] leds-alix-0.0.1/leds-alix.c:71:20: note: You might need to cast the function pointer here leds-alix-0.0.1/leds-alix.c:46:49: note: Parameter 'led_cdev' can be declared as pointer to const leds-alix-0.0.1/leds-alix.c:55:49: style: Parameter 'led_cdev' can be declared as pointer to const. However it seems that 'alix_led_set_3' is a callback function, if 'led_cdev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] leds-alix-0.0.1/leds-alix.c:76:20: note: You might need to cast the function pointer here leds-alix-0.0.1/leds-alix.c:55:49: note: Parameter 'led_cdev' can be declared as pointer to const diff: DONE