2024-03-27 11:44 ftp://ftp.de.debian.org/debian/pool/main/i/iec16022/iec16022_0.2.7.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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.55 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 99853e4 (2024-03-27 05:16:23 +0100) count: 26 22 elapsed-time: 11.7 165.7 head-timing-info: old-timing-info: head results: iec16022-0.2.7/image.c:647:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iec16022-0.2.7/iec16022.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iec16022-0.2.7/iec16022.c:100:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POPT_ARG_STRING [valueFlowBailoutIncompleteVar] iec16022-0.2.7/image.c:437:21: style:inconclusive: Redundant condition: The condition '*text' is redundant since '*text >= ' '' is sufficient. [redundantCondition] iec16022-0.2.7/image.c:336:2: warning: Suspicious use of ; at the end of 'for' statement. [suspiciousSemicolon] iec16022-0.2.7/image.c:433:45: style:inconclusive: Function 'ImageText' argument 4 names different: declaration 'c' definition 'col'. [funcArgNamesDifferent] iec16022-0.2.7/image.h:44:45: note: Function 'ImageText' argument 4 names different: declaration 'c' definition 'col'. iec16022-0.2.7/image.c:433:45: note: Function 'ImageText' argument 4 names different: declaration 'c' definition 'col'. iec16022-0.2.7/image.c:456:46: style:inconclusive: Function 'ImageSmall' argument 4 names different: declaration 'c' definition 'col'. [funcArgNamesDifferent] iec16022-0.2.7/image.h:45:46: note: Function 'ImageSmall' argument 4 names different: declaration 'c' definition 'col'. iec16022-0.2.7/image.c:456:46: note: Function 'ImageSmall' argument 4 names different: declaration 'c' definition 'col'. iec16022-0.2.7/image.c:406:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] iec16022-0.2.7/image.c:460:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] iec16022-0.2.7/image.c:564:18: style: struct member 'Anonymous0::depth' is never used. [unusedStructMember] iec16022-0.2.7/image.c:565:18: style: struct member 'Anonymous0::colour' is never used. [unusedStructMember] iec16022-0.2.7/image.c:566:18: style: struct member 'Anonymous0::compress' is never used. [unusedStructMember] iec16022-0.2.7/image.c:567:18: style: struct member 'Anonymous0::filter' is never used. [unusedStructMember] iec16022-0.2.7/image.c:568:18: style: struct member 'Anonymous0::interlace' is never used. [unusedStructMember] iec16022-0.2.7/iec16022.c:387:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] iec16022-0.2.7/iec16022.c:159:4: error: Resource leak: f [resourceLeak] iec16022-0.2.7/iec16022.c:167:9: style: Variable 'x' can be declared as pointer to const [constVariablePointer] iec16022-0.2.7/iec16022ecc200.c:79:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iec16022-0.2.7/iec16022ecc200.c:246:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iec16022-0.2.7/iec16022ecc200.c:892:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iec16022-0.2.7/iec16022ecc200.c:749:17: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] iec16022-0.2.7/iec16022ecc200.c:748:16: note: outer condition: p+4