2024-04-22 09:06 ftp://ftp.de.debian.org/debian/pool/main/s/stress/stress_1.0.7.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 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 18 18 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: stress-1.0.7/src/stress.c:108:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:509:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:564:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:640:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:694:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:744:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:777:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stress-1.0.7/src/stress.c:483:9: warning: Return value of function sqrt() is not used. [ignoredReturnValue] stress-1.0.7/src/stress.c:307:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-1.0.7/src/stress.c:329:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-1.0.7/src/stress.c:350:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-1.0.7/src/stress.c:371:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-1.0.7/src/stress.c:638:35: style: Condition '(pos=strlen(nptr)-1)<0' is always false [knownConditionTrueFalse] stress-1.0.7/src/stress.c:692:35: style: Condition '(pos=strlen(nptr)-1)<0' is always false [knownConditionTrueFalse] stress-1.0.7/src/stress.c:118:15: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] stress-1.0.7/src/stress.c:742:11: style: Variable 'mesg' can be declared as pointer to const [constVariablePointer] stress-1.0.7/src/stress.c:755:11: style: Variable 'mesg' can be declared as pointer to const [constVariablePointer] stress-1.0.7/src/stress.c:415:26: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diff: DONE