2025-05-07 04:05 ftp://ftp.de.debian.org/debian/pool/main/p/pnglite/pnglite_0.1.17.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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 24 24 elapsed-time: 0.2 0.3 head-timing-info: old-timing-info: head results: pnglite.c:334:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable z_stream [valueFlowBailoutIncompleteVar] pnglite.c:356:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable z_stream [valueFlowBailoutIncompleteVar] pnglite.c:411:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_OK [valueFlowBailoutIncompleteVar] pnglite.c:441:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_SYNC_FLUSH [valueFlowBailoutIncompleteVar] pnglite.c:471:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_SYNC_FLUSH [valueFlowBailoutIncompleteVar] pnglite.c:501:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_NULL [valueFlowBailoutIncompleteVar] pnglite.c:550:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_NULL [valueFlowBailoutIncompleteVar] pnglite.c:164:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pnglite.c:237:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pnglite.c:238:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pnglite.c:89:39: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] pnglite.c:126:31: style: Parameter 'png' can be declared as pointer to const [constParameterPointer] pnglite.c:628:55: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] pnglite.c:642:54: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] pnglite.c:642:93: style: Parameter 'prev_line' can be declared as pointer to const [constParameterPointer] pnglite.c:655:59: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] pnglite.c:655:98: style: Parameter 'prev_line' can be declared as pointer to const [constParameterPointer] pnglite.c:696:57: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] pnglite.c:696:96: style: Parameter 'prev_line' can be declared as pointer to const [constParameterPointer] pnglite.c:730:30: style: Parameter 'png' can be declared as pointer to const [constParameterPointer] pnglite.c:730:50: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] pnglite.c:819:101: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] pnglite.c:222:14: style: Variable 'p' is assigned a value that is never used. [unreadVariable] pnglite.c:660:19: style: Variable 'sum' is assigned a value that is never used. [unreadVariable] diff: DONE