2025-11-24 21:08 ftp://ftp.de.debian.org/debian/pool/main/x/xva-img/xva-img_1.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 21 21 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: xva-img-1.5/src/main.cpp:82:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xva-img-1.5/src/progress.cpp:114:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xva-img-1.5/src/disk.cpp:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] xva-img-1.5/src/main.cpp:200:4: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] xva-img-1.5/src/progress.hpp:43:4: style: Class 'Progress' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] xva-img-1.5/src/disk.hpp:43:4: style: Class 'Disk' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] xva-img-1.5/src/main.cpp:87:23: style: Variable 'longopts' can be declared as const array [constVariable] xva-img-1.5/src/progress.cpp:93:7: style: Variable 'spinner' can be declared as const array [constVariable] xva-img-1.5/src/sha1.cpp:43:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] xva-img-1.5/src/writefile.cpp:39:65: style:inconclusive: Function 'WriteFile' argument 2 names different: declaration 'output' definition 'data'. [funcArgNamesDifferent] xva-img-1.5/src/writefile.hpp:40:61: note: Function 'WriteFile' argument 2 names different: declaration 'output' definition 'data'. xva-img-1.5/src/writefile.cpp:39:65: note: Function 'WriteFile' argument 2 names different: declaration 'output' definition 'data'. xva-img-1.5/src/package.cpp:98:18: style:inconclusive: Technically the member function 'XVA::XVAPackage::Write' can be const. [functionConst] xva-img-1.5/src/package.hpp:50:9: note: Technically the member function 'XVA::XVAPackage::Write' can be const. xva-img-1.5/src/package.cpp:98:18: note: Technically the member function 'XVA::XVAPackage::Write' can be const. xva-img-1.5/src/package.cpp:164:3: portability: %lo in format string (no. 1) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] xva-img-1.5/src/package.cpp:129:15: style: Local variable 'file' shadows outer argument [shadowArgument] xva-img-1.5/src/package.cpp:98:43: note: Shadowed declaration xva-img-1.5/src/package.cpp:129:15: note: Shadow variable xva-img-1.5/src/package.cpp:144:10: style: Local variable 'len' shadows outer variable [shadowVariable] xva-img-1.5/src/package.cpp:136:9: note: Shadowed declaration xva-img-1.5/src/package.cpp:144:10: note: Shadow variable xva-img-1.5/src/disk.cpp:101:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xva-img-1.5/src/package.cpp:171:11: style: Local variable 'x' shadows outer variable [shadowVariable] xva-img-1.5/src/package.cpp:109:9: note: Shadowed declaration xva-img-1.5/src/package.cpp:171:11: note: Shadow variable xva-img-1.5/src/package.cpp:79:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] xva-img-1.5/src/package.cpp:193:9: style: Variable 'null' can be declared as const array [constVariable] xva-img-1.5/src/xxh64.cpp:47:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] xva-img-1.5/src/disk.cpp:71:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] xva-img-1.5/src/disk.cpp:190:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] diff: DONE