2024-03-26 00:49 ftp://ftp.de.debian.org/debian/pool/main/t/tkmpeg/tkmpeg_1.0.10.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-6.5.0-25-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.13.0 head-info: 82f05c8 (2024-03-25 22:58:58 +0100) count: 18 15 elapsed-time: 1.6 1.6 head-timing-info: old-timing-info: head results: tkmpeg-1.0.10/ezmpeg.c:723:13: style: Condition 'level>=1' is always true [knownConditionTrueFalse] tkmpeg-1.0.10/ezmpeg.c:722:12: note: Assuming that condition 'level>0' is not redundant tkmpeg-1.0.10/ezmpeg.c:723:13: note: Condition 'level>=1' is always true tkmpeg-1.0.10/ezmpeg.c:899:19: style: Condition 'dc_diff>=2' is always true [knownConditionTrueFalse] tkmpeg-1.0.10/ezmpeg.c:895:14: note: Assuming that condition 'dc_diff==1' is not redundant tkmpeg-1.0.10/ezmpeg.c:899:19: note: Condition 'dc_diff>=2' is always true tkmpeg-1.0.10/ezmpeg.c:555:47: style: Parameter 'ms' can be declared as pointer to const [constParameterPointer] tkmpeg-1.0.10/ezmpeg.c:555:66: style: Parameter 'picture' can be declared as pointer to const [constParameterPointer] tkmpeg-1.0.10/ezmpeg.c:630:52: style: Parameter 'ms' can be declared as pointer to const [constParameterPointer] tkmpeg-1.0.10/ezmpeg.c:683:28: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] tkmpeg-1.0.10/ezmpeg.c:985:77: style: Parameter 'inbild' can be declared as pointer to const [constParameterPointer] tkmpeg-1.0.10/ezmpeg.c:480:8: style: Variable 'level' is assigned a value that is never used. [unreadVariable] tkmpeg-1.0.10/tkmpeg.C:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_PATCH_LEVEL [valueFlowBailoutIncompleteVar] tkmpeg-1.0.10/tkmpeg.C:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] tkmpeg-1.0.10/tkmpeg.C:78:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] tkmpeg-1.0.10/tkmpeg.C:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] tkmpeg-1.0.10/tkmpeg.C:189:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] tkmpeg-1.0.10/tkmpeg.C:64:9: warning: Member variable 'TkMPEG::ms' is not initialized in the constructor. [uninitMemberVar] tkmpeg-1.0.10/tkmpeg.C:64:9: warning: Member variable 'TkMPEG::fps' is not initialized in the constructor. [uninitMemberVar] tkmpeg-1.0.10/tkmpeg.C:64:9: warning: Member variable 'TkMPEG::gop' is not initialized in the constructor. [uninitMemberVar] tkmpeg-1.0.10/tkmpeg.h:23:3: style: Class 'TkMPEG' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tkmpeg-1.0.10/tkmpeg.C:155:18: style: Variable 'src' can be declared as pointer to const [constVariablePointer] diff: head tkmpeg-1.0.10/ezmpeg.c:555:66: style: Parameter 'picture' can be declared as pointer to const [constParameterPointer] head tkmpeg-1.0.10/tkmpeg.C:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] 2.13.0 tkmpeg-1.0.10/tkmpeg.C:174:9: style: Condition 'pict' is always true [knownConditionTrueFalse] 2.13.0 tkmpeg-1.0.10/tkmpeg.C:180:7: style: Condition 'pict' is always true [knownConditionTrueFalse] head tkmpeg-1.0.10/tkmpeg.C:189:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] head tkmpeg-1.0.10/tkmpeg.C:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] head tkmpeg-1.0.10/tkmpeg.C:78:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] DONE