2026-05-01 23:56 ftp://ftp.de.debian.org/debian/pool/main/g/gamazons/gamazons_0.83.orig.tar.gz 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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 195 191 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: gamazons-0.83/src/main-boarddrawn.c:163:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNOME_TYPE_CANVAS_RECT [valueFlowBailoutIncompleteVar] gamazons-0.83/src/main-boarddrawn.c:189:21: style: Variable 'image' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/main-boarddrawn.c:92:9: style: Unused variable: color [unusedVariable] gamazons-0.83/src/main-boarddrawn.c:217:12: style: Variable 'image' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/main-boarddrawn.c:228:12: style: Variable 'image' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:1143:1: portability: Omitted return type of function 'update_status_bar' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] gamazons-0.83/src/main.c:48:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] gamazons-0.83/src/callbacks.c:115:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] gamazons-0.83/src/callbacks.c:422:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_POINTER_MOTION_MASK [valueFlowBailoutIncompleteVar] gamazons-0.83/src/callbacks.c:705:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] gamazons-0.83/src/callbacks.c:812:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTextIter [valueFlowBailoutIncompleteVar] gamazons-0.83/src/bstate.c:23:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/support.c:92:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:613:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:829:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:1240:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTextIter [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:1330:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/board.c:1445:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/interface.c:169:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gamazons-0.83/src/interface.c:801:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gamazons-0.83/src/callbacks.c:821:7: error: Memory leak: iter_start [memleak] gamazons-0.83/src/callbacks.c:821:7: error: Memory leak: iter_end [memleak] gamazons-0.83/src/callbacks.c:844:7: error: Memory leak: iter_start [memleak] gamazons-0.83/src/callbacks.c:844:7: error: Memory leak: iter_end [memleak] gamazons-0.83/src/callbacks.c:850:1: error: Memory leak: iter_start [memleak] gamazons-0.83/src/callbacks.c:850:1: error: Memory leak: iter_end [memleak] gamazons-0.83/src/callbacks.c:64:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:65:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:77:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:78:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:85:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:86:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:134:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:135:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:211:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:212:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:292:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:293:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:311:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:312:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:331:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:332:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:639:15: style: Variable 'white_ai' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:639:36: style: Variable 'black_ai' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:759:46: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_ThemeCancelButton_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:711:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:759:46: note: Parameter 'button' can be declared as pointer to const gamazons-0.83/src/callbacks.c:759:63: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_ThemeCancelButton_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:711:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:759:63: note: Parameter 'user_data' can be declared as pointer to const gamazons-0.83/src/callbacks.c:814:11: style: Variable 'text' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:815:10: style: Variable 'temp_dir' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:852:49: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_save_as1CancelButton_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:783:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:852:49: note: Parameter 'button' can be declared as pointer to const gamazons-0.83/src/callbacks.c:852:66: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_save_as1CancelButton_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:783:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:852:66: note: Parameter 'user_data' can be declared as pointer to const gamazons-0.83/src/callbacks.c:904:10: style: Variable 'temp_dir' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:953:45: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_OpenCancelButton_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:976:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:953:45: note: Parameter 'button' can be declared as pointer to const gamazons-0.83/src/callbacks.c:953:62: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_OpenCancelButton_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/callbacks.c:976:4: note: You might need to cast the function pointer here gamazons-0.83/src/callbacks.c:953:62: note: Parameter 'user_data' can be declared as pointer to const gamazons-0.83/src/callbacks.c:1004:10: style: Variable 'temp_dir' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/callbacks.c:1067:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:1068:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/callbacks.c:221:8: style: Unused variable: temp [unusedVariable] gamazons-0.83/src/callbacks.c:222:15: style: Unused variable: undo_button [unusedVariable] gamazons-0.83/src/callbacks.c:354:8: style: Unused variable: i [unusedVariable] gamazons-0.83/src/callbacks.c:354:10: style: Unused variable: j [unusedVariable] gamazons-0.83/src/callbacks.c:355:15: style: Unused variable: auto_button [unusedVariable] gamazons-0.83/src/callbacks.c:355:29: style: Unused variable: undo_button [unusedVariable] gamazons-0.83/src/callbacks.c:647:13: style: Variable 'white_ai' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/callbacks.c:649:13: style: Variable 'black_ai' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/callbacks.c:770:10: style: Unused variable: home_env [unusedVariable] gamazons-0.83/src/callbacks.c:863:10: style: Unused variable: home_env [unusedVariable] gamazons-0.83/src/callbacks.c:963:10: style: Unused variable: home_env [unusedVariable] gamazons-0.83/src/moves.c:1121:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gamazons-0.83/src/moves.c:1384:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gamazons-0.83/src/moves.c:1472:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gamazons-0.83/src/moves.c:1753:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] gamazons-0.83/src/moves.c:1797:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] gamazons-0.83/src/moves.c:2002:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gamazons-0.83/src/interface.c:175: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] gamazons-0.83/src/interface.c:194: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] gamazons-0.83/src/interface.c:213: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] gamazons-0.83/src/interface.c:279: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] gamazons-0.83/src/interface.c:345: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] gamazons-0.83/src/interface.c:411: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] gamazons-0.83/src/interface.c:490: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] gamazons-0.83/src/interface.c:494: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] gamazons-0.83/src/interface.c:498: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] gamazons-0.83/src/interface.c:519: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] gamazons-0.83/src/interface.c:534: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] gamazons-0.83/src/interface.c:562: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] gamazons-0.83/src/interface.c:566: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] gamazons-0.83/src/interface.c:607: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] gamazons-0.83/src/interface.c:639:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:642:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:645:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:648:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:651:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:654:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:807: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] gamazons-0.83/src/interface.c:812: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] gamazons-0.83/src/interface.c:837: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] gamazons-0.83/src/interface.c:872: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] gamazons-0.83/src/interface.c:876: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] gamazons-0.83/src/interface.c:881: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] gamazons-0.83/src/interface.c:903: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] gamazons-0.83/src/interface.c:949: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] gamazons-0.83/src/interface.c:962:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/interface.c:965:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/unit-test.c:10:8: style: Local variable 'moves' shadows outer function [shadowFunction] gamazons-0.83/src/amazons.h:150:5: note: Shadowed declaration gamazons-0.83/src/unit-test.c:10:8: note: Shadow variable gamazons-0.83/src/unit-test.c:37:8: style: Local variable 'moves' shadows outer function [shadowFunction] gamazons-0.83/src/amazons.h:150:5: note: Shadowed declaration gamazons-0.83/src/unit-test.c:37:8: note: Shadow variable gamazons-0.83/src/board.c:906:25: style: Array index 'row' is used before limits check. [arrayIndexThenCheck] gamazons-0.83/src/board.c:65:4: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/board.c:298:6: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/board.c:328:6: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gamazons-0.83/src/board.c:1474:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gamazons-0.83/src/board.c:1469:11: style: Local variable 'start' shadows outer variable [shadowVariable] gamazons-0.83/src/board.c:26:15: note: Shadowed declaration gamazons-0.83/src/board.c:1469:11: note: Shadow variable gamazons-0.83/src/board.c:197:22: style: Variable 'root' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/board.c:602:21: style: Variable 'image' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/board.c:603:22: style: Variable 'root' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/board.c:1270:25: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/board.c:1316:37: style: Parameter 'move_str' can be declared as const array [constParameter] gamazons-0.83/src/board.c:35:9: style: Unused variable: color [unusedVariable] gamazons-0.83/src/board.c:192:16: style: Variable 'black_i' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:197:27: style: Variable 'root' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:333:12: style: Variable 'image' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:195:9: style: Unused variable: color [unusedVariable] gamazons-0.83/src/board.c:198:15: style: Variable 'first_game' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:433:14: style: Variable 'count' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:429:8: style: Unused variable: i [unusedVariable] gamazons-0.83/src/board.c:429:10: style: Unused variable: j [unusedVariable] gamazons-0.83/src/board.c:603:27: style: Variable 'root' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:617:10: style: Variable 'image' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/board.c:811:8: style: Unused variable: tocol [unusedVariable] gamazons-0.83/src/board.c:811:15: style: Unused variable: torow [unusedVariable] gamazons-0.83/src/board.c:892:8: style: Unused variable: i [unusedVariable] gamazons-0.83/src/board.c:894:8: style: Unused variable: scanning [unusedVariable] gamazons-0.83/src/board.c:1215:8: style: Unused variable: i [unusedVariable] gamazons-0.83/src/board.c:1216:15: style: Unused variable: CNVS_GAMEBOARD [unusedVariable] gamazons-0.83/src/board.c:1216:32: style: Unused variable: w [unusedVariable] gamazons-0.83/src/board.c:1216:36: style: Unused variable: scrolledwindow4 [unusedVariable] gamazons-0.83/src/board.c:1216:54: style: Unused variable: table1 [unusedVariable] gamazons-0.83/src/board.c:1412:21: style: Variable 'replay_delay' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/eval.c:853:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tt [nullPointerOutOfMemory] gamazons-0.83/src/eval.c:845:31: note: Assuming allocation function fails gamazons-0.83/src/eval.c:845:12: note: Assignment 'tt=(struct state_t**)calloc(0x3d0925,sizeof(struct state_t*))', assigned value is 0 gamazons-0.83/src/eval.c:853:10: note: Null pointer dereference gamazons-0.83/src/eval.c:988:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tt [nullPointerOutOfMemory] gamazons-0.83/src/eval.c:981:31: note: Assuming allocation function fails gamazons-0.83/src/eval.c:981:12: note: Assignment 'tt=(struct state_t**)calloc(0x3d0925,sizeof(struct state_t*))', assigned value is 0 gamazons-0.83/src/eval.c:988:10: note: Null pointer dereference gamazons-0.83/src/eval.c:441:8: style: Local variable 'moves' shadows outer function [shadowFunction] gamazons-0.83/src/amazons.h:150:5: note: Shadowed declaration gamazons-0.83/src/eval.c:441:8: note: Shadow variable gamazons-0.83/src/eval.c:35:9: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/eval.c:882:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/eval.c:882:35: style: Parameter 't' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/moves.c:1797:11: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1859:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1864:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1869:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1874:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1879:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1884:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:1889:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2006:11: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2018:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2024:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2030:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2036:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2042:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:2048:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gamazons-0.83/src/moves.c:717:28: style:inconclusive: Function 'isearch' argument 2 names different: declaration '' definition 'think'. [funcArgNamesDifferentUnnamed] gamazons-0.83/src/moves.c:820:59: style:inconclusive: Function 'search' argument 5 names different: declaration '' definition 'tdepth'. [funcArgNamesDifferentUnnamed] gamazons-0.83/src/moves.c:820:71: style:inconclusive: Function 'search' argument 6 names different: declaration '' definition 'think'. [funcArgNamesDifferentUnnamed] gamazons-0.83/src/moves.c:1021:18: style:inconclusive: Function 'pboard' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] gamazons-0.83/src/moves.c:86:8: style: Local variable 'moves' shadows outer function [shadowFunction] gamazons-0.83/src/amazons.h:150:5: note: Shadowed declaration gamazons-0.83/src/moves.c:86:8: note: Shadow variable gamazons-0.83/src/moves.c:322:8: style: Local variable 'moves' shadows outer function [shadowFunction] gamazons-0.83/src/amazons.h:150:5: note: Shadowed declaration gamazons-0.83/src/moves.c:322:8: note: Shadow variable gamazons-0.83/src/moves.c:125:11: style: Variable 'queens_x' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:126:11: style: Variable 'queens_y' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:127:9: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:696:22: style: Parameter 'm1' can be declared as pointer to const. However it seems that 'mincompare' is a callback function, if 'm1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/moves.c:923:55: note: You might need to cast the function pointer here gamazons-0.83/src/moves.c:696:22: note: Parameter 'm1' can be declared as pointer to const gamazons-0.83/src/moves.c:696:32: style: Parameter 'm2' can be declared as pointer to const. However it seems that 'mincompare' is a callback function, if 'm2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/moves.c:923:55: note: You might need to cast the function pointer here gamazons-0.83/src/moves.c:696:32: note: Parameter 'm2' can be declared as pointer to const gamazons-0.83/src/moves.c:706:22: style: Parameter 'm1' can be declared as pointer to const. However it seems that 'maxcompare' is a callback function, if 'm1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/moves.c:925:55: note: You might need to cast the function pointer here gamazons-0.83/src/moves.c:706:22: note: Parameter 'm1' can be declared as pointer to const gamazons-0.83/src/moves.c:706:32: style: Parameter 'm2' can be declared as pointer to const. However it seems that 'maxcompare' is a callback function, if 'm2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gamazons-0.83/src/moves.c:925:55: note: You might need to cast the function pointer here gamazons-0.83/src/moves.c:706:32: note: Parameter 'm2' can be declared as pointer to const gamazons-0.83/src/moves.c:781:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/moves.c:822:13: style: Variable 'stt' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:1244:23: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/moves.c:1270:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/moves.c:1720:10: style: Variable 'home_env' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:1776:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:1911:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] gamazons-0.83/src/moves.c:1989:34: style: Parameter 'theme' can be declared as pointer to const [constParameterPointer] gamazons-0.83/src/moves.c:2088:33: style: Parameter 'argv' can be declared as const array [constParameter] gamazons-0.83/src/moves.c:1801:7: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] gamazons-0.83/src/moves.c:2010:7: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] gamazons-0.83/src/moves.c:777:14: warning: Uninitialized variables: temp1.queen, temp1.tocol, temp1.torow, temp1.wallcol, temp1.wallrow, temp1.val, temp1.depth [uninitvar] gamazons-0.83/src/moves.c:727:23: note: Assuming condition is false gamazons-0.83/src/moves.c:777:14: note: Uninitialized variables: temp1.queen, temp1.tocol, temp1.torow, temp1.wallcol, temp1.wallrow, temp1.val, temp1.depth gamazons-0.83/src/moves.c:815:11: error: Uninitialized variables: temp.queen, temp.tocol, temp.torow, temp.wallcol, temp.wallrow, temp.depth [uninitvar] gamazons-0.83/src/moves.c:841:14: error: Uninitialized variable: movelist [uninitvar] gamazons-0.83/src/moves.c:1327:11: error: Uninitialized variables: temp.val, temp.depth [uninitvar] gamazons-0.83/src/moves.c:119:13: style: Variable 'p' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/moves.c:724:13: style: Variable 'even.val' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/moves.c:725:12: style: Variable 'odd.val' is assigned a value that is never used. [unreadVariable] gamazons-0.83/src/moves.c:828:8: style: Unused variable: randomizer [unusedVariable] gamazons-0.83/src/moves.c:1718:9: style: Unused variable: temp [unusedVariable] gamazons-0.83/src/moves.c:1991:10: style: Unused variable: home [unusedVariable] gamazons-0.83/src/moves.c:1991:16: style: Unused variable: file [unusedVariable] gamazons-0.83/src/moves.c:1995:8: style: Unused variable: value [unusedVariable] diff: head gamazons-0.83/src/moves.c:1021:18: style:inconclusive: Function 'pboard' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head gamazons-0.83/src/moves.c:717:28: style:inconclusive: Function 'isearch' argument 2 names different: declaration '' definition 'think'. [funcArgNamesDifferentUnnamed] head gamazons-0.83/src/moves.c:820:59: style:inconclusive: Function 'search' argument 5 names different: declaration '' definition 'tdepth'. [funcArgNamesDifferentUnnamed] head gamazons-0.83/src/moves.c:820:71: style:inconclusive: Function 'search' argument 6 names different: declaration '' definition 'think'. [funcArgNamesDifferentUnnamed] DONE