2026-05-01 06:44 ftp://ftp.de.debian.org/debian/pool/main/b/buildtorrent/buildtorrent_0.9.1.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-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: 0fda84e (2026-05-01 02:32:52 +0200) count: 40 40 elapsed-time: 3.9 3.5 head-timing-info: old-timing-info: head results: buildtorrent-0.9.1/buildtorrent.c:144:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:322:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:419:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:731:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_name [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:815:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:845:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:885:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:1079:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:1256:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:1402:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] buildtorrent-0.9.1/buildtorrent.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] buildtorrent-0.9.1/buildtorrent.c:1554:7: style: The if condition is the same as the previous if condition [duplicateCondition] buildtorrent-0.9.1/buildtorrent.c:1532:7: note: First condition buildtorrent-0.9.1/buildtorrent.c:1554:7: note: Second condition buildtorrent-0.9.1/buildtorrent.c:335:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] buildtorrent-0.9.1/buildtorrent.c:360:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] buildtorrent-0.9.1/buildtorrent.c:421:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] buildtorrent-0.9.1/buildtorrent.c:1493:12: style: Checking if unsigned expression 'plen' is less than zero. [unsignedLessThanZero] buildtorrent-0.9.1/buildtorrent.c:1708:9: style: Local variable 'i' shadows outer variable [shadowVariable] buildtorrent-0.9.1/buildtorrent.c:1349:7: note: Shadowed declaration buildtorrent-0.9.1/buildtorrent.c:1708:9: note: Shadow variable buildtorrent-0.9.1/buildtorrent.c:503:17: style: Variable 'hexdigits' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:667:9: style: Variable 'hexdigits' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1319:9: style: Variable 'url' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1320:9: style: Variable 'urls' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1321:9: style: Variable 'nodesstr' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1322:9: style: Variable 'wurls' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1326:9: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1327:9: style: Variable 'commentstr' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1328:9: style: Variable 'filelistfilename' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:1370:26: style: Variable 'options' can be declared as const array [constVariable] buildtorrent-0.9.1/buildtorrent.c:1712:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] buildtorrent-0.9.1/buildtorrent.c:672:16: style: Variable 'size' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/md5.c:49:33: style:inconclusive: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] buildtorrent-0.9.1/md5.h:29:33: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/md5.c:49:33: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/md5.c:64:35: style:inconclusive: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] buildtorrent-0.9.1/md5.h:30:35: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/md5.c:64:35: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/md5.c:112:54: style:inconclusive: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] buildtorrent-0.9.1/md5.h:31:54: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/md5.c:112:54: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. buildtorrent-0.9.1/sha1.c:54:12: style: union member '_BYTE64QUAD16::c' is never used. [unusedStructMember] buildtorrent-0.9.1/sha1.c:107:4: style: Variable 'a' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:107:8: style: Variable 'b' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:107:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:107:16: style: Variable 'd' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:107:20: style: Variable 'e' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:162:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] buildtorrent-0.9.1/sha1.c:162:8: style: Variable 'j' is assigned a value that is never used. [unreadVariable] diff: DONE