2025-07-20 17:46 ftp://ftp.de.debian.org/debian/pool/main/y/yum-metadata-parser/yum-metadata-parser_1.1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --library=gtk --library=sqlite3 --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.12-9-pve-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.18.0 head-info: 9ec24c2 (2025-07-20 18:11:42 +0200) count: 32 32 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: yum-metadata-parser-1.1.4/db.c:190:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:534:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:614:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:666:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:784:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:832:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:966:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/db.c:134:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:284:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:517:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:591:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:645:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:767:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:806:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:943:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/db.c:208:21: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] yum-metadata-parser-1.1.4/db.c:71:18: style: Variable 'file' can be declared as pointer to const [constVariablePointer] yum-metadata-parser-1.1.4/db.c:609:38: style: Parameter 'dep' can be declared as pointer to const [constParameterPointer] yum-metadata-parser-1.1.4/db.c:662:33: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] yum-metadata-parser-1.1.4/db.c:825:22: style: Parameter 'key' can be declared as pointer to const. However it seems that 'write_file' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yum-metadata-parser-1.1.4/db.c:856:33: note: You might need to cast the function pointer here yum-metadata-parser-1.1.4/db.c:825:22: note: Parameter 'key' can be declared as pointer to const yum-metadata-parser-1.1.4/db.c:827:25: style: Variable 'file' can be declared as pointer to const [constVariablePointer] yum-metadata-parser-1.1.4/db.c:959:21: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] yum-metadata-parser-1.1.4/sqlitecache.c:471:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/sqlitecache.c:545:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_MESSAGE [valueFlowBailoutIncompleteVar] yum-metadata-parser-1.1.4/sqlitecache.c:72:10: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] yum-metadata-parser-1.1.4/sqlitecache.c:140:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] yum-metadata-parser-1.1.4/sqlitecache.c:140:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] yum-metadata-parser-1.1.4/sqlitecache.c:93:38: style: Parameter 'value' can be declared as pointer to const. However it seems that 'remove_entry' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yum-metadata-parser-1.1.4/sqlitecache.c:115:51: note: You might need to cast the function pointer here yum-metadata-parser-1.1.4/sqlitecache.c:93:38: note: Parameter 'value' can be declared as pointer to const yum-metadata-parser-1.1.4/xml-parser.c:457:17: style: Variable 'sctx' can be declared as pointer to const [constVariablePointer] yum-metadata-parser-1.1.4/xml-parser.c:593:8: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] yum-metadata-parser-1.1.4/xml-parser.c:830:8: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] yum-metadata-parser-1.1.4/xml-parser.c:1053:8: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] diff: DONE