2024-04-13 08:50 ftp://ftp.de.debian.org/debian/pool/main/s/systemd-cron/systemd-cron_2.3.4.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 646f869 (2024-04-12 10:43:30 +0200) count: 8 7 elapsed-time: 0.1 0.0 head-timing-info: old-timing-info: head results: systemd-cron-2.3.4/src/bin/crontab.cpp:301:63: error: There is an unknown macro here somewhere. Configuration is required. If STATEDIR is a macro then please configure it. [unknownMacro] systemd-cron-2.3.4/src/bin/crontab_setgid.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] systemd-cron-2.3.4/src/bin/crontab_setgid.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGIN_NAME_MAX [valueFlowBailoutIncompleteVar] systemd-cron-2.3.4/src/bin/crontab_setgid.c:34:7: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] systemd-cron-2.3.4/src/bin/crontab_setgid.c:17:17: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] systemd-cron-2.3.4/src/bin/crontab_setgid.c:28:26: style: Parameter 'argv' can be declared as const array [constParameter] systemd-cron-2.3.4/src/bin/crontab_setgid.c:33:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] systemd-cron-2.3.4/src/bin/systemd-crontab-generator.cpp:1138:44: error: There is an unknown macro here somewhere. Configuration is required. If STATEDIR is a macro then please configure it. [unknownMacro] diff: head systemd-cron-2.3.4/src/bin/crontab_setgid.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGIN_NAME_MAX [valueFlowBailoutIncompleteVar] DONE