2025-09-15 22:00 ftp://ftp.de.debian.org/debian/pool/main/r/reform-tools/reform-tools_1.78.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 -j4 platform: Linux-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 2 14 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: reform-tools-1.78/lpc/reform2_lpc.c:200:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] reform-tools-1.78/lpc/reform2_lpc.c:200:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:120:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BACKLIGHT_RAW [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:143:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:166:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] head reform-tools-1.78/lpc/reform2_lpc.c:200:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head reform-tools-1.78/lpc/reform2_lpc.c:200:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:249:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dev_attr_status [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:299:41: style: Parameter 'dev' can be declared as pointer to const. However it seems that 'show_uart' is a callback function, if 'dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] reform-tools-1.78/lpc/reform2_lpc.c:62:32: note: You might need to cast the function pointer here reform-tools-1.78/lpc/reform2_lpc.c:299:41: note: Parameter 'dev' can be declared as pointer to const 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:299:71: style: Parameter 'attr' can be declared as pointer to const. However it seems that 'show_uart' is a callback function, if 'attr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] reform-tools-1.78/lpc/reform2_lpc.c:62:32: note: You might need to cast the function pointer here reform-tools-1.78/lpc/reform2_lpc.c:299:71: note: Parameter 'attr' can be declared as pointer to const 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:300:11: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'show_uart' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] reform-tools-1.78/lpc/reform2_lpc.c:62:32: note: You might need to cast the function pointer here reform-tools-1.78/lpc/reform2_lpc.c:300:11: note: Parameter 'buf' can be declared as pointer to const 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:340:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:340:9: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:345:2: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:370:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:398:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:415:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 reform-tools-1.78/lpc/reform2_lpc.c:444:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POWER_SUPPLY_STATUS_UNKNOWN [valueFlowBailoutIncompleteVar] DONE