2026-05-31 09:58 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 -j1 platform: Linux-6.8.0-124-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 8c14fc7 (2026-05-31 09:56:45 +0200) count: 23 23 elapsed-time: 0.3 0.1 head-timing-info: old-timing-info: head results: xva-img-1.5/src/disk.cpp:69:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_path [valueFlowBailoutIncompleteVar] xva-img-1.5/src/disk.cpp:187:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_path [valueFlowBailoutIncompleteVar] xva-img-1.5/src/disk.cpp:264:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_verbose [valueFlowBailoutIncompleteVar] xva-img-1.5/src/disk.cpp:269:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_sparse [valueFlowBailoutIncompleteVar] xva-img-1.5/src/disk.cpp:274:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_ignore_checksum [valueFlowBailoutIncompleteVar] 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/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/main.cpp:82:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [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/main.cpp:87:23: style: Variable 'longopts' can be declared as const array [constVariable] xva-img-1.5/src/package.cpp:106:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_verbose [valueFlowBailoutIncompleteVar] xva-img-1.5/src/package.cpp:219:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_verbose [valueFlowBailoutIncompleteVar] 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:144:10: style: Local variable 'len' shadows outer variable [shadowVariable] xva-img-1.5/src/package.cpp:136:9: note: Shadowed variable xva-img-1.5/src/package.cpp:144:10: note: Shadow local variable 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 variable xva-img-1.5/src/package.cpp:171:11: note: Shadow local variable xva-img-1.5/src/progress.cpp:58:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_active [valueFlowBailoutIncompleteVar] xva-img-1.5/src/progress.cpp:67:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_curval [valueFlowBailoutIncompleteVar] xva-img-1.5/src/progress.cpp:73:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_active [valueFlowBailoutIncompleteVar] xva-img-1.5/src/progress.cpp:119:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_curval [valueFlowBailoutIncompleteVar] 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/xxh64.cpp:47:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] diff: 2.20.0 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 head 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 variable xva-img-1.5/src/package.cpp:144:10: note: Shadow local variable 2.20.0 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 head 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 variable xva-img-1.5/src/package.cpp:171:11: note: Shadow local variable DONE