2026-05-02 10:25 ftp://ftp.de.debian.org/debian/pool/main/g/gtkballs/gtkballs_3.1.5+git20210713.6e53b66.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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: 43 43 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: gtkballs-3.1.5+git20210713.6e53b66/src/gtkcompat.h:527:2: error: failed to evaluate #if condition, undefined function-like macro invocation: CAIRO_VERSION_ENCODE( ... ) [syntaxError] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:537:41: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:198:37: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:198:47: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:198:57: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:198:67: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:198:77: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:213:38: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:259:27: style: Parameter 'balls' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:259:40: style: Parameter 'nextballs' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/game.c:294:10: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] gtkballs-3.1.5+git20210713.6e53b66/src/path.c:51:52: style: Parameter 'source_nodes' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/path.c:56:8: style: Variable 'xses' can be declared as const array [constVariable] gtkballs-3.1.5+git20210713.6e53b66/src/path.c:57:8: style: Variable 'yses' can be declared as const array [constVariable] gtkballs-3.1.5+git20210713.6e53b66/src/path.c:129:14: style: Variable 'finish' is assigned a value that is never used. [unreadVariable] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:103:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:133:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:171:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:170:54: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:47:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:114:11: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:36:7: error: Resource leak: f [resourceLeak] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:90:47: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:161:25: style: Parameter 'rules' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:161:50: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/savegame.c:161:63: style: Parameter 'nextcolors' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:383:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:231:7: style: Same expression on both sides of '=='. [duplicateExpression] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:247:10: style: Same expression on both sides of '=='. [duplicateExpression] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:267:10: style: Same expression on both sides of '=='. [duplicateExpression] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:59:31: style: Parameter 'themename' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:61:11: style: Variable 'homedir' can be declared as pointer to const [constVariablePointer] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:82:50: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/theme.c:82:63: style: Parameter 'pixmapname' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/themerc.c:28:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/themerc.c:78:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkballs-3.1.5+git20210713.6e53b66/src/themerc.c:21:25: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] gtkballs-3.1.5+git20210713.6e53b66/src/themerc.c:72:40: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] diff: DONE