2025-05-07 06:50 ftp://ftp.de.debian.org/debian/pool/main/p/pycparser/pycparser_2.22.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 48 36 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: pycparser-2.22/examples/c_files/basic.c:1:12: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] pycparser-2.22/examples/c_files/funky.c:14:16: style: Variable 'multi' can be declared as pointer to const [constVariablePointer] pycparser-2.22/examples/c_files/funky.c:8:12: style: Variable 'o' is assigned a value that is never used. [unreadVariable] pycparser-2.22/examples/c_files/funky.c:8:10: style: Variable 'o' is assigned a value that is never used. [unreadVariable] pycparser-2.22/examples/c_files/funky.c:14:22: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] pycparser-2.22/examples/c_files/funky.c:14:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] pycparser-2.22/examples/c_files/pragmas.c:9:12: style: Local variable 'i' shadows outer variable [shadowVariable] pycparser-2.22/examples/c_files/pragmas.c:1:5: note: Shadowed declaration pycparser-2.22/examples/c_files/pragmas.c:9:12: note: Shadow variable pycparser-2.22/examples/c_files/year.c:7:7: style: Variable 'num' can be declared as const array [constVariable] pycparser-2.22/examples/c_files/year.c:10:7: style: Variable 'for_ten' can be declared as const array [constVariable] pycparser-2.22/examples/c_files/year.c:13:7: style: Variable 'af_ten' can be declared as const array [constVariable] pycparser-2.22/tests/c_files/c11.c:43:12: style: Variable 'w' can be declared as pointer to const [constVariablePointer] pycparser-2.22/tests/c_files/c11.c:44:13: style: Variable 'c16' can be declared as pointer to const [constVariablePointer] pycparser-2.22/tests/c_files/c11.c:45:13: style: Variable 'c32' can be declared as pointer to const [constVariablePointer] pycparser-2.22/tests/c_files/c11.c:46:9: style: Variable 'u8' can be declared as pointer to const [constVariablePointer] pycparser-2.22/tests/c_files/c11.c:43:14: style: Variable 'w' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:44:17: style: Variable 'c16' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:45:17: style: Variable 'c32' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:46:12: style: Variable 'u8' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:48:14: style: Variable 'wc' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:49:17: style: Variable 'c16c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:50:17: style: Variable 'c32c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:51:12: style: Variable 'u8c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:43:12: style: Variable 'w' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:44:13: style: Variable 'c16' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:45:13: style: Variable 'c32' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:46:9: style: Variable 'u8' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:48:11: style: Variable 'wc' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:49:12: style: Variable 'c16c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:50:12: style: Variable 'c32c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/c11.c:51:8: style: Variable 'u8c' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/example_c_file.c:8:16: style: Variable 'multi' can be declared as pointer to const [constVariablePointer] pycparser-2.22/tests/c_files/example_c_file.c:8:22: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/example_c_file.c:8:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] pycparser-2.22/examples/c_files/memmgr.c:69:19: style: Variable 'h' is reassigned a value before the old one has been used. [redundantAssignment] pycparser-2.22/examples/c_files/memmgr.c:68:11: note: h is assigned pycparser-2.22/examples/c_files/memmgr.c:69:19: note: h is overwritten pycparser-2.22/examples/c_files/memmgr.c:27:11: style: union member 'mem_header_union::align_dummy' is never used. [unusedStructMember] example_c_file.c:17:16: style: Variable 'multi' can be declared as pointer to const [constVariablePointer] example_c_file.c:17:22: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] example_c_file.c:17:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] pycparser-2.22/tests/c_files/year.c:12:7: style: Variable 'num' can be declared as const array [constVariable] pycparser-2.22/tests/c_files/year.c:15:7: style: Variable 'for_ten' can be declared as const array [constVariable] pycparser-2.22/tests/c_files/year.c:18:7: style: Variable 'af_ten' can be declared as const array [constVariable] pycparser-2.22/tests/c_files/year.c:32:11: style: Unused variable: jajaja [unusedVariable] pycparser-2.22/tests/c_files/memmgr.c:69:19: style: Variable 'h' is reassigned a value before the old one has been used. [redundantAssignment] pycparser-2.22/tests/c_files/memmgr.c:68:11: note: h is assigned pycparser-2.22/tests/c_files/memmgr.c:69:19: note: h is overwritten pycparser-2.22/tests/c_files/memmgr.c:27:11: style: union member 'mem_header_union::align_dummy' is never used. [unusedStructMember] memmgr.c:68:9: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'union'. [invalidPrintfArgType_uint] memmgr.c:82:13: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'union'. [invalidPrintfArgType_uint] memmgr.c:82:13: warning: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'union'. [invalidPrintfArgType_uint] memmgr.c:115:19: style: Variable 'h' is reassigned a value before the old one has been used. [redundantAssignment] memmgr.c:114:11: note: h is assigned memmgr.c:115:19: note: h is overwritten diff: head example_c_file.c:17:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/examples/c_files/funky.c:14:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/examples/c_files/funky.c:8:10: style: Variable 'o' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:43:12: style: Variable 'w' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:44:13: style: Variable 'c16' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:45:13: style: Variable 'c32' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:46:9: style: Variable 'u8' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:48:11: style: Variable 'wc' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:49:12: style: Variable 'c16c' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:50:12: style: Variable 'c32c' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/c11.c:51:8: style: Variable 'u8c' is assigned a value that is never used. [unreadVariable] head pycparser-2.22/tests/c_files/example_c_file.c:8:16: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] DONE