2026-05-04 06:23 ftp://ftp.de.debian.org/debian/pool/main/p/pd-midifile/pd-midifile_0.4.4.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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 68 69 elapsed-time: 1.4 1.2 head-timing-info: old-timing-info: head results: pd-externals-midifile-643ba66/midifile.c:177:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_DEFSYMBOL [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:210:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable a_type [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:378:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:468:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:493:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable a_type [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:586:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_FLOAT [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:954:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_FLOAT [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:1508:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t_atom [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:1813:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w_float [valueFlowBailoutIncompleteVar] pd-externals-midifile-643ba66/midifile.c:440:5: warning:inconclusive: The buffer 'trackPath' may not be null-terminated after the call to strncpy(). [terminateStrncpy] pd-externals-midifile-643ba66/midifile.c:460:5: warning:inconclusive: The buffer 'trackPath' may not be null-terminated after the call to strncpy(). [terminateStrncpy] pd-externals-midifile-643ba66/midifile.c:1551:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pd-externals-midifile-643ba66/midifile.c:1551:19: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pd-externals-midifile-643ba66/midifile.c:1559:27: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pd-externals-midifile-643ba66/midifile.c:1598:27: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pd-externals-midifile-643ba66/midifile.c:525:35: style: Variable 'x->track_chunk[0].chunk_type[0]' is reassigned a value before the old one has been used. [redundantAssignment] pd-externals-midifile-643ba66/midifile.c:524:35: note: x->track_chunk[0].chunk_type[0] is assigned pd-externals-midifile-643ba66/midifile.c:525:35: note: x->track_chunk[0].chunk_type[0] is overwritten pd-externals-midifile-643ba66/midifile.c:526:35: style: Variable 'x->track_chunk[0].chunk_type[0]' is reassigned a value before the old one has been used. [redundantAssignment] pd-externals-midifile-643ba66/midifile.c:525:35: note: x->track_chunk[0].chunk_type[0] is assigned pd-externals-midifile-643ba66/midifile.c:526:35: note: x->track_chunk[0].chunk_type[0] is overwritten pd-externals-midifile-643ba66/midifile.c:527:35: style: Variable 'x->track_chunk[0].chunk_type[0]' is reassigned a value before the old one has been used. [redundantAssignment] pd-externals-midifile-643ba66/midifile.c:526:35: note: x->track_chunk[0].chunk_type[0] is assigned pd-externals-midifile-643ba66/midifile.c:527:35: note: x->track_chunk[0].chunk_type[0] is overwritten pd-externals-midifile-643ba66/midifile.c:307:70: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] pd-externals-midifile-643ba66/midifile.c:311:13: style: Variable 'slash' can be declared as const array [constVariable] pd-externals-midifile-643ba66/midifile.c:570:14: style: Variable 'sPtr' can be declared as pointer to const [constVariablePointer] pd-externals-midifile-643ba66/midifile.c:1299:61: style: Parameter 'n' can be declared as const array [constParameter] pd-externals-midifile-643ba66/midifile.c:1309:61: style: Parameter 'n' can be declared as const array [constParameter] pd-externals-midifile-643ba66/midifile.c:1318:62: style: Parameter 'n' can be declared as const array [constParameter] pd-externals-midifile-643ba66/midifile.c:1487:27: style: Variable 'last_cP' can be declared as pointer to const [constVariablePointer] pd-externals-midifile-643ba66/midifile.c:1502:73: style: Parameter 'cP' can be declared as pointer to const [constParameterPointer] pd-externals-midifile-643ba66/midifile.c:1530:27: style: Variable 'last_cP' can be declared as pointer to const [constVariablePointer] pd-externals-midifile-643ba66/midifile.c:1782:27: style: Variable 'last_cP' can be declared as pointer to const [constVariablePointer] pd-externals-midifile-643ba66/midifile.c:2076:27: style: Variable 'last_cP' can be declared as pointer to const [constVariablePointer] pd-externals-midifile-643ba66/midifile.c:2172:14: style: Variable 'maj_key' can be declared as const array [constVariable] pd-externals-midifile-643ba66/midifile.c:2173:14: style: Variable 'min_key' can be declared as const array [constVariable] pd-externals-midifile-643ba66/midifile.c:1495:12: style: Variable 'cP' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1559:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1564:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1569:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1572:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1575:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1578:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1581:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1584:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1587:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1590:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1593:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1607:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1614:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1624:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1633:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1636:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1641:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1645:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1651:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1659:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1667:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1675:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1683:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1691:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1699:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1707:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1710:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1716:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1737:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1744:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1746:28: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1751:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1756:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1760:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1763:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] pd-externals-midifile-643ba66/midifile.c:1767:24: style: Variable 'msgPtr' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 pd-externals-midifile-643ba66/midifile.c:1244:21: style: Unused variable: buf [unusedVariable] DONE