2025-07-10 20:09 ftp://ftp.de.debian.org/debian/pool/main/p/pd-syslog/pd-syslog_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-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 8 8 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: syslog-0.1/syslog.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPDSTRING [valueFlowBailoutIncompleteVar] syslog-0.1/syslog.c:135:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] syslog-0.1/syslog.c:120:3: warning: Either the condition 'result' is redundant or there is possible null pointer dereference: result. [nullPointerRedundantCheck] syslog-0.1/syslog.c:121:6: note: Assuming that condition 'result' is not redundant syslog-0.1/syslog.c:120:3: note: Null pointer dereference syslog-0.1/syslog.c:59:39: style: Parameter 'x' can be declared as pointer to const. However it seems that 'syslog_anything' is a callback function, if 'x' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syslog-0.1/syslog.c:154:35: note: You might need to cast the function pointer here syslog-0.1/syslog.c:59:39: note: Parameter 'x' can be declared as pointer to const syslog-0.1/syslog.c:59:51: style: Parameter 's' can be declared as pointer to const. However it seems that 'syslog_anything' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syslog-0.1/syslog.c:154:35: note: You might need to cast the function pointer here syslog-0.1/syslog.c:59:51: note: Parameter 's' can be declared as pointer to const syslog-0.1/syslog.c:92:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] syslog-0.1/syslog.c:127:35: style: Parameter 'x' can be declared as pointer to const. However it seems that 'syslog_free' is a callback function, if 'x' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syslog-0.1/syslog.c:150:38: note: You might need to cast the function pointer here syslog-0.1/syslog.c:127:35: note: Parameter 'x' can be declared as pointer to const syslog-0.1/syslog.c:132:34: style: Parameter 's' can be declared as pointer to const. However it seems that 'syslog_new' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] syslog-0.1/syslog.c:149:59: note: You might need to cast the function pointer here syslog-0.1/syslog.c:132:34: note: Parameter 's' can be declared as pointer to const diff: DONE