2025-08-31 08:28 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-79-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.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 44 110 elapsed-time: 0.7 1.7 head-timing-info: old-timing-info: head results: gtkballs-3.1.5+git20210713.6e53b66/src/gtkcompat.h:74:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] gtkballs-3.1.5+git20210713.6e53b66/src/gtkcompat.h:74:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 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: 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/about.c:23:13: style: Variable 'translators' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/about.c:25:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gfx.c:169:15: style: Variable 'widget' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gfx.c:368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:166:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:32:11: style: Variable 'config_home' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:62:27: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:62:44: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:73:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:77:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkballs.c:82:14: style: Variable 'k' is assigned a value that is never used. [unreadVariable] head gtkballs-3.1.5+git20210713.6e53b66/src/gtkcompat.h:74:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head gtkballs-3.1.5+git20210713.6e53b66/src/gtkcompat.h:74:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:116:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:116:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:12:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'ut_key_pressed_cb' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:32:7: note: You might need to cast the function pointer here gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:12:60: note: Parameter 'event' can be declared as pointer to const 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:134:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:142:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:14:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Escape [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:26:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:52:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER_ON_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:77:29: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/gtkutils.c:77:29: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:43:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_IN [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:49:16: warning: Possible null pointer dereference: bs [nullPointer] gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:95:34: note: Calling function 'show_hall_of_fame', 3rd argument 'NULL' value is 0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:20:29: note: Assignment 'bs=b', assigned value is 0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:29:13: note: Assuming condition is false gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:49:16: note: Null pointer dereference 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:49:18: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/halloffame.c:75:13: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/inputname.c:117:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/inputname.c:26:15: style: Variable 'timeptr' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/inputname.c:38:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/inputname.c:79:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/inputname.c:93:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainmenu.c:67:59: style: Parameter 'data' can be declared as pointer to const. However it seems that '_menu_translate' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkballs-3.1.5+git20210713.6e53b66/src/mainmenu.c:76:55: note: You might need to cast the function pointer here gtkballs-3.1.5+git20210713.6e53b66/src/mainmenu.c:67:59: note: Parameter 'data' can be declared as pointer to const 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:164:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:171:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:171:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:178:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:178:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:185:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:185:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:189:12: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:189:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:195:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:195:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:95:36: style: Parameter 'w' can be declared as pointer to const. However it seems that '_user_action_event' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:205:4: note: You might need to cast the function pointer here gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:95:36: note: Parameter 'w' can be declared as pointer to const 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:95:49: style: Parameter 'ev' can be declared as pointer to const. However it seems that '_user_action_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:205:4: note: You might need to cast the function pointer here gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:95:49: note: Parameter 'ev' can be declared as pointer to const 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/mainwin.c:97:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_MOTION_NOTIFY [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/preferences.c:138:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkWidget [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/preferences.c:191:14: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/preferences.c:39:46: style: Parameter 'data' can be declared as pointer to const. However it seems that 'fix_draw_next_balls' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkballs-3.1.5+git20210713.6e53b66/src/preferences.c:74:22: note: You might need to cast the function pointer here gtkballs-3.1.5+git20210713.6e53b66/src/preferences.c:39:46: note: Parameter 'data' can be declared as pointer to const 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/prefs.c:117:34: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/prefs.c:197:41: style: Parameter 'property' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/prefs.c:197:58: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/prefs.c:201:38: style: Parameter 'property' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/prefs.c:230:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/rules.c:23:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/rules.c:23:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/rules.c:58:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/rulesdialog.c:57:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/rulesdialog.c:79:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:107:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:157:11: style: Variable 'str_a' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:157:19: style: Variable 'str_b' can be declared as pointer to const [constVariablePointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:227:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_IN [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:302:30: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:302:47: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:306:30: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/savedialog.c:306:47: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/scoreboard.c:170:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 gtkballs-3.1.5+git20210713.6e53b66/src/scoreboard.c:36:66: style: Parameter 'bf' can be declared as pointer to const [constParameterPointer] DONE