2025-08-30 20:37 ftp://ftp.de.debian.org/debian/pool/main/f/forkstat/forkstat_0.04.00.orig.tar.xz 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-79-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.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 2 31 elapsed-time: 0.1 0.5 head-timing-info: old-timing-info: head results: forkstat-0.04.00/forkstat.c:341:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] forkstat-0.04.00/forkstat.c:341:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 forkstat-0.04.00/forkstat.c:1096:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1171:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1335:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1358:17: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:1359:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1392:17: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:1403:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1464:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1500:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NLMSG_DONE [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1525:12: style: Variable 'pid_size' is assigned a value that is never used. [unreadVariable] 2.18.0 forkstat-0.04.00/forkstat.c:1537:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1572:23: style: Variable 'proc_ev' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:159:16: style: struct member 'ev_map_t::stat' is never used. [unusedStructMember] 2.18.0 forkstat-0.04.00/forkstat.c:164:13: style: struct member 'time_scale_t::ch' is never used. [unusedStructMember] 2.18.0 forkstat-0.04.00/forkstat.c:165:17: style: struct member 'time_scale_t::base' is never used. [unusedStructMember] 2.18.0 forkstat-0.04.00/forkstat.c:166:17: style: struct member 'time_scale_t::scale' is never used. [unusedStructMember] 2.18.0 forkstat-0.04.00/forkstat.c:1863:35: style: Parameter 'argv' can be declared as const array [constParameter] 2.18.0 forkstat-0.04.00/forkstat.c:1865:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1890:14: style: Variable 'token' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:1892:27: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 forkstat-0.04.00/forkstat.c:1903:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:1934:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head forkstat-0.04.00/forkstat.c:341:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head forkstat-0.04.00/forkstat.c:341:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 forkstat-0.04.00/forkstat.c:371:17: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:387:9: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] 2.18.0 forkstat-0.04.00/forkstat.c:446:17: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] 2.18.0 forkstat-0.04.00/forkstat.c:469:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:566:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:588:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:670:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:778:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 forkstat-0.04.00/forkstat.c:920:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] DONE