2025-11-21 03:06 ftp://ftp.de.debian.org/debian/pool/main/e/etckeeper/etckeeper_1.18.23.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-87-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: 5374cd3 (2025-11-20 15:35:39 +0100) count: 6 6 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: etckeeper-1.18.23/pkgng/etckeeper.c:53:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PKG_PLUGIN_NAME [valueFlowBailoutIncompleteVar] etckeeper-1.18.23/pkgng/etckeeper.c:105:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] etckeeper-1.18.23/pkgng/etckeeper.c:123:24: style: Parameter 'data' can be declared as pointer to const. However it seems that 'pre_install_hook' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] etckeeper-1.18.23/pkgng/etckeeper.c:79:64: note: You might need to cast the function pointer here etckeeper-1.18.23/pkgng/etckeeper.c:123:24: note: Parameter 'data' can be declared as pointer to const etckeeper-1.18.23/pkgng/etckeeper.c:123:44: style: Parameter 'db' can be declared as pointer to const. However it seems that 'pre_install_hook' is a callback function, if 'db' is declared with const you might also need to cast function pointer(s). [constParameterCallback] etckeeper-1.18.23/pkgng/etckeeper.c:79:64: note: You might need to cast the function pointer here etckeeper-1.18.23/pkgng/etckeeper.c:123:44: note: Parameter 'db' can be declared as pointer to const etckeeper-1.18.23/pkgng/etckeeper.c:129:25: style: Parameter 'data' can be declared as pointer to const. However it seems that 'post_install_hook' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] etckeeper-1.18.23/pkgng/etckeeper.c:84:65: note: You might need to cast the function pointer here etckeeper-1.18.23/pkgng/etckeeper.c:129:25: note: Parameter 'data' can be declared as pointer to const etckeeper-1.18.23/pkgng/etckeeper.c:129:45: style: Parameter 'db' can be declared as pointer to const. However it seems that 'post_install_hook' is a callback function, if 'db' is declared with const you might also need to cast function pointer(s). [constParameterCallback] etckeeper-1.18.23/pkgng/etckeeper.c:84:65: note: You might need to cast the function pointer here etckeeper-1.18.23/pkgng/etckeeper.c:129:45: note: Parameter 'db' can be declared as pointer to const diff: DONE