2026-05-02 06:26 ftp://ftp.de.debian.org/debian/pool/main/g/gnubik/gnubik_2.4.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=opengl --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-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 158 127 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: gnubik-2.4.3/src/colour-dialog.c:59:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_NEAREST [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/colour-dialog.c:186:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/colour-dialog.c:299:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/colour-dialog.c:308:28: 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] gnubik-2.4.3/src/colour-dialog.c:309:24: 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] gnubik-2.4.3/src/colour-dialog.c:311:34: 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] gnubik-2.4.3/src/colour-dialog.c:312:34: 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] gnubik-2.4.3/src/colour-dialog.c:287:33: style:inconclusive: Function 'colour_select_menu' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/colour-dialog.c:287:46: style:inconclusive: Function 'colour_select_menu' argument 2 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/colour-dialog.c:131:14: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/colour-dialog.c:232:14: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/colour-dialog.c:448:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/control.c:112:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/control.c:191:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/control.c:157:42: style:inconclusive: Function 'selection_func' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/control.c:35:20: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/control.c:47:24: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/control.c:63:24: style: Parameter 'cube' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/control.c:98:19: style: Variable 'display' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/control.c:157:42: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/control.c:186:14: style: Variable 'display' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/control.c:98:27: style: Variable 'display' is assigned a value that is never used. [unreadVariable] gnubik-2.4.3/src/control.c:186:22: style: Variable 'display' is assigned a value that is never used. [unreadVariable] gnubik-2.4.3/src/cube.c:44:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCM_UNSPECIFIED [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cube.c:401:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cube.c:519:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_MODELVIEW_MATRIX [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cube.c:219:30: style:inconclusive: Function 'gbk_cube_set_size' argument 1 names different: declaration 'ret' definition 'cube'. [funcArgNamesDifferent] gnubik-2.4.3/src/cube.h:125:35: note: Function 'gbk_cube_set_size' argument 1 names different: declaration 'ret' definition 'cube'. gnubik-2.4.3/src/cube.c:219:30: note: Function 'gbk_cube_set_size' argument 1 names different: declaration 'ret' definition 'cube'. gnubik-2.4.3/src/cube.c:480:14: style:inconclusive: Function 'gbk_cube_get_block_transform' argument 2 names different: declaration 'block' definition 'block_id'. [funcArgNamesDifferent] gnubik-2.4.3/src/cube.h:93:61: note: Function 'gbk_cube_get_block_transform' argument 2 names different: declaration 'block' definition 'block_id'. gnubik-2.4.3/src/cube.c:480:14: note: Function 'gbk_cube_get_block_transform' argument 2 names different: declaration 'block' definition 'block_id'. gnubik-2.4.3/src/cube.c:489:19: style:inconclusive: Function 'gbk_cube_new' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/cube.c:489:26: style:inconclusive: Function 'gbk_cube_new' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/cube.c:489:33: style:inconclusive: Function 'gbk_cube_new' argument 3 names different: declaration '' definition 'z'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/cube.c:530:64: style:inconclusive: Function 'gbk_cube_rotate_slice' argument 2 names different: declaration 'md' definition 'm'. [funcArgNamesDifferent] gnubik-2.4.3/src/cube.h:100:69: note: Function 'gbk_cube_rotate_slice' argument 2 names different: declaration 'md' definition 'm'. gnubik-2.4.3/src/cube.c:530:64: note: Function 'gbk_cube_rotate_slice' argument 2 names different: declaration 'md' definition 'm'. gnubik-2.4.3/src/cube.c:134:11: style: Local variable 'i' shadows outer variable [shadowVariable] gnubik-2.4.3/src/cube.c:47:7: note: Shadowed declaration gnubik-2.4.3/src/cube.c:134:11: note: Shadow variable gnubik-2.4.3/src/cube.c:340:56: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cube_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cube.c:395:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/cube.c:340:56: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/cube.c:348:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cube.c:362:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cube_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cube.c:396:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/cube.c:362:50: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/cube.c:364:12: style: Variable 'cube' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cube.c:449:25: style: Variable 'move' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cube.c:665:10: style: Variable 'i' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cubeview.c:48:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_NO_ERROR [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:315:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:443:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GL_RGBA_TYPE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:498:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:569:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_ENTER_NOTIFY [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:589:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:648:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS_MASK [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:821:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CROSSHAIR [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:832:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ACCUM_BLUE_BITS [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:857:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:880:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ACCUM_BUFFER_BIT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:942:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_MODELVIEW [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:1025:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/cubeview.c:602:34: style:inconclusive: Function 'gbk_cubeview_finalize' argument 1 names different: declaration 'cv' definition 'o'. [funcArgNamesDifferent] gnubik-2.4.3/src/cubeview.c:291:46: note: Function 'gbk_cubeview_finalize' argument 1 names different: declaration 'cv' definition 'o'. gnubik-2.4.3/src/cubeview.c:602:34: note: Function 'gbk_cubeview_finalize' argument 1 names different: declaration 'cv' definition 'o'. gnubik-2.4.3/src/cubeview.c:717:29: style:inconclusive: Function 'gbk_cubeview_new' argument 1 names different: declaration 'c' definition 'cube'. [funcArgNamesDifferent] gnubik-2.4.3/src/cubeview.h:131:40: note: Function 'gbk_cubeview_new' argument 1 names different: declaration 'c' definition 'cube'. gnubik-2.4.3/src/cubeview.c:717:29: note: Function 'gbk_cubeview_new' argument 1 names different: declaration 'c' definition 'cube'. gnubik-2.4.3/src/cubeview.c:772:39: style:inconclusive: Function 'gbk_cubeview_redisplay' argument 1 names different: declaration 'dc' definition 'cv'. [funcArgNamesDifferent] gnubik-2.4.3/src/cubeview.h:135:44: note: Function 'gbk_cubeview_redisplay' argument 1 names different: declaration 'dc' definition 'cv'. gnubik-2.4.3/src/cubeview.c:772:39: note: Function 'gbk_cubeview_redisplay' argument 1 names different: declaration 'dc' definition 'cv'. gnubik-2.4.3/src/cubeview.c:870:35: style:inconclusive: Function 'display_anti_alias' argument 1 names different: declaration '' definition 'dc'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/cubeview.c:900:28: style:inconclusive: Function 'display_raw' argument 1 names different: declaration '' definition 'dc'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/cubeview.c:1053:29: style:inconclusive: Function 'animate_move' argument 1 names different: declaration 'dc' definition 'cv'. [funcArgNamesDifferent] gnubik-2.4.3/src/cubeview.c:64:41: note: Function 'animate_move' argument 1 names different: declaration 'dc' definition 'cv'. gnubik-2.4.3/src/cubeview.c:1053:29: note: Function 'animate_move' argument 1 names different: declaration 'dc' definition 'cv'. gnubik-2.4.3/src/cubeview.c:67:44: style: Parameter 'move' can be declared as pointer to const. However it seems that 'on_move' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:123:4: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:67:44: note: Parameter 'move' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:101:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cubeview_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:309:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:101:45: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:136:10: style: Variable 'asp' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cubeview.c:157:12: style: Variable 'col' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cubeview.c:231:54: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'cubeview_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:310:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:231:54: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:247:11: style: Variable 'v' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cubeview.c:454:55: style: Parameter 'event' can be declared as pointer to const. However it seems that 'cube_orientate_mouse' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:665:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:454:55: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:494:51: style: Parameter 'event' can be declared as pointer to const. However it seems that 'cube_orientate_keys' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:662:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:494:51: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:553:43: style: Parameter 'event' can be declared as pointer to const. However it seems that 'z_rotate' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:668:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:553:43: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:565:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_crossing' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:673:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:565:53: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:581:59: style: Parameter 'event' can be declared as pointer to const. However it seems that 'enable_disable_selection' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:679:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:581:59: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cubeview.c:717:29: style: Parameter 'cube' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/cubeview.c:923:42: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/cubeview.c:933:22: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/cubeview.c:936:12: style: Variable 'cube_orientation' can be declared as const array [constVariable] gnubik-2.4.3/src/cubeview.c:1020:50: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_mouse_button' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/cubeview.c:682:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/cubeview.c:1020:50: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/cursors.c:429:27: style:inconclusive: Function 'get_cursor' argument 8 names different: declaration 'rev' definition 'reverse'. [funcArgNamesDifferent] gnubik-2.4.3/src/cursors.h:32:37: note: Function 'get_cursor' argument 8 names different: declaration 'rev' definition 'reverse'. gnubik-2.4.3/src/cursors.c:429:27: note: Function 'get_cursor' argument 8 names different: declaration 'rev' definition 'reverse'. gnubik-2.4.3/src/dialogs.c:54:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXFLOAT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/dialogs.c:153:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_NAME [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/dialogs.c:191:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/dialogs.c:108:21: 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] gnubik-2.4.3/src/dialogs.c:109:21: 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] gnubik-2.4.3/src/dialogs.c:112:22: 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] gnubik-2.4.3/src/dialogs.c:199:21: 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] gnubik-2.4.3/src/dialogs.c:143:42: style:inconclusive: Function 'about_dialog' argument 2 names different: declaration '' definition 'toplevel'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/drwBlock.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/drwBlock.c:195:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POLYGON [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/drwBlock.c:271:8: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] gnubik-2.4.3/src/drwBlock.c:135:26: style:inconclusive: Function 'draw_face' argument 1 names different: declaration '' definition 'cv'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/drwBlock.c:401:21: style: Parameter 'cube' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/drwBlock.c:459:21: style: Variable 'moving_blocks' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/game.c:124:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/game.c:77:56: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'game_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/game.c:117:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/game.c:77:56: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/game.c:96:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'game_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/game.c:118:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/game.c:96:50: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/game.c:149:25: style: Parameter 'cube' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/game.c:231:57: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/game.c:411:19: style: Variable 'n' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/glarea-common.c:61:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VIEWPORT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/glarea-common.c:116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_TEST [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/glarea-common.c:42:36: style:inconclusive: Function 'perspectiveSet' argument 1 names different: declaration '' definition 'scene'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/glarea-common.c:93:27: style:inconclusive: Function 'scene_init' argument 1 names different: declaration '' definition 'cv'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/glarea-common.c:111:37: style:inconclusive: Function 'projection_init' argument 1 names different: declaration '' definition 'scene'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/glarea-common.c:95:12: style: Variable 'cube' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/glarea-common.c:111:37: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] gnubik-2.4.3/src/guile-hooks.c:76:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UI_MANAGER_MENU [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/guile-hooks.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UI_MANAGER_MENUITEM [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/guile-hooks.c:164:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCM_UNSPECIFIED [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/guile-hooks.c:178:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCM_UNSPECIFIED [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/guile-hooks.c:239:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUILEDIR [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/guile-hooks.c:83:3: error: Mismatching allocation and deallocation: menuloc [mismatchAllocDealloc] gnubik-2.4.3/src/guile-hooks.c:78:19: note: Mismatching allocation and deallocation: menuloc gnubik-2.4.3/src/guile-hooks.c:83:3: note: Mismatching allocation and deallocation: menuloc gnubik-2.4.3/src/guile-hooks.c:84:3: error: Mismatching allocation and deallocation: loc_str [mismatchAllocDealloc] gnubik-2.4.3/src/guile-hooks.c:59:15: note: Mismatching allocation and deallocation: loc_str gnubik-2.4.3/src/guile-hooks.c:84:3: note: Mismatching allocation and deallocation: loc_str gnubik-2.4.3/src/guile-hooks.c:207:13: warning: If resource allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfResources] gnubik-2.4.3/src/guile-hooks.c:191:28: note: Assuming allocation function fails gnubik-2.4.3/src/guile-hooks.c:191:28: note: Assignment 'directory=opendir(dir_name)', assigned value is 0 gnubik-2.4.3/src/guile-hooks.c:207:13: note: Null pointer dereference gnubik-2.4.3/src/guile-hooks.c:219:39: style:inconclusive: Function 'startup_guile_scripts' argument 1 names different: declaration 'uim' definition 'ui_manager'. [funcArgNamesDifferent] gnubik-2.4.3/src/guile-hooks.h:29:44: note: Function 'startup_guile_scripts' argument 1 names different: declaration 'uim' definition 'ui_manager'. gnubik-2.4.3/src/guile-hooks.c:219:39: note: Function 'startup_guile_scripts' argument 1 names different: declaration 'uim' definition 'ui_manager'. gnubik-2.4.3/src/guile-hooks.c:195:22: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/main.c:236:25: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_BUGREPORT is a macro then please configure it. [unknownMacro] gnubik-2.4.3/src/menus.c:43:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:279:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:299:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:384:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:500:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_BOTH [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:550:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/menus.c:210:29: style:inconclusive: Function 'create_statusbar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/menus.c:257:27: style:inconclusive: Function 'start_new_game' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/menus.c:377:27: style:inconclusive: Function 'create_menubar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/menus.c:448:32: style:inconclusive: Function 'create_play_toolbar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/menus.c:93:10: style: Variable 'aspect' can be declared as const array [constVariable] gnubik-2.4.3/src/menus.c:101:10: style: Variable 'aspect' can be declared as const array [constVariable] gnubik-2.4.3/src/menus.c:108:10: style: Variable 'aspect' can be declared as const array [constVariable] gnubik-2.4.3/src/menus.c:116:10: style: Variable 'aspect' can be declared as const array [constVariable] gnubik-2.4.3/src/menus.c:123:10: style: Variable 'aspect' can be declared as const array [constVariable] gnubik-2.4.3/src/menus.c:189:43: style: Parameter 'view' can be declared as pointer to const. However it seems that 'update_statusbar_animation' is a callback function, if 'view' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/menus.c:220:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/menus.c:189:43: note: Parameter 'view' can be declared as pointer to const gnubik-2.4.3/src/move.c:40:35: style:inconclusive: Function 'move_set_turns' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:40:42: style:inconclusive: Function 'move_set_turns' argument 2 names different: declaration '' definition 'turns'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:123:37: style:inconclusive: Function 'move_unref' argument 1 names different: declaration '' definition 'm_'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:139:35: style:inconclusive: Function 'move_ref' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:150:36: style:inconclusive: Function 'move_copy' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:187:37: style:inconclusive: Function 'move_turns' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:193:35: style:inconclusive: Function 'move_dir' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/move.c:199:36: style:inconclusive: Function 'move_axis' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:83:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_Shift_R [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/select.c:160:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_MOTION_NOTIFY [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/select.c:264:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SELECT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/select.c:304:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/select.c:101:59: style:inconclusive: Function 'select_create' argument 5 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:131:42: style:inconclusive: Function 'select_destroy' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:140:42: style:inconclusive: Function 'select_disable' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:148:41: style:inconclusive: Function 'select_enable' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:156:64: style:inconclusive: Function 'detect_motion' argument 3 names different: declaration 'user_data' definition 'data'. [funcArgNamesDifferent] gnubik-2.4.3/src/select.c:51:44: note: Function 'detect_motion' argument 3 names different: declaration 'user_data' definition 'data'. gnubik-2.4.3/src/select.c:156:64: note: Function 'detect_motion' argument 3 names different: declaration 'user_data' definition 'data'. gnubik-2.4.3/src/select.c:297:68: style:inconclusive: Function 'choose_items' argument 3 names different: declaration '' definition 'selection'. [funcArgNamesDifferentUnnamed] gnubik-2.4.3/src/select.c:79:39: style: Parameter 'e' can be declared as pointer to const. However it seems that 'key_press' is a callback function, if 'e' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/select.c:111:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/select.c:79:39: note: Parameter 'e' can be declared as pointer to const gnubik-2.4.3/src/select.c:156:48: style: Parameter 'event' can be declared as pointer to const. However it seems that 'detect_motion' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/select.c:108:3: note: You might need to cast the function pointer here gnubik-2.4.3/src/select.c:156:48: note: Parameter 'event' can be declared as pointer to const gnubik-2.4.3/src/swatch.c:164:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_NEAREST [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/swatch.c:313:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DEST_DEFAULT_ALL [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/swatch.c:284:6: style: Statements following 'break' will never be executed. [unreachableCode] gnubik-2.4.3/src/swatch.c:45:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'swatch_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/swatch.c:332:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/swatch.c:45:58: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/swatch.c:101:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'swatch_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnubik-2.4.3/src/swatch.c:333:33: note: You might need to cast the function pointer here gnubik-2.4.3/src/swatch.c:101:52: note: Parameter 'pspec' can be declared as pointer to const gnubik-2.4.3/src/swatch.c:216:11: style: Variable 'vals' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/swatch.c:242:17: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] gnubik-2.4.3/src/textures.c:40:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_UNPACK_ALIGNMENT [valueFlowBailoutIncompleteVar] gnubik-2.4.3/src/txfm.c:42:47: style:inconclusive: Function 'vector_transform_in_place' argument 2 names different: declaration 'tx' definition 'M'. [funcArgNamesDifferent] gnubik-2.4.3/src/txfm.h:35:52: note: Function 'vector_transform_in_place' argument 2 names different: declaration 'tx' definition 'M'. gnubik-2.4.3/src/txfm.c:42:47: note: Function 'vector_transform_in_place' argument 2 names different: declaration 'tx' definition 'M'. diff: head gnubik-2.4.3/src/colour-dialog.c:287:33: style:inconclusive: Function 'colour_select_menu' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/colour-dialog.c:287:46: style:inconclusive: Function 'colour_select_menu' argument 2 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/control.c:157:42: style:inconclusive: Function 'selection_func' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/cube.c:489:19: style:inconclusive: Function 'gbk_cube_new' argument 1 names different: declaration '' definition 'x'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/cube.c:489:26: style:inconclusive: Function 'gbk_cube_new' argument 2 names different: declaration '' definition 'y'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/cube.c:489:33: style:inconclusive: Function 'gbk_cube_new' argument 3 names different: declaration '' definition 'z'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/cubeview.c:870:35: style:inconclusive: Function 'display_anti_alias' argument 1 names different: declaration '' definition 'dc'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/cubeview.c:900:28: style:inconclusive: Function 'display_raw' argument 1 names different: declaration '' definition 'dc'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/dialogs.c:143:42: style:inconclusive: Function 'about_dialog' argument 2 names different: declaration '' definition 'toplevel'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/drwBlock.c:135:26: style:inconclusive: Function 'draw_face' argument 1 names different: declaration '' definition 'cv'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/drwBlock.c:271:8: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] head gnubik-2.4.3/src/glarea-common.c:111:37: style:inconclusive: Function 'projection_init' argument 1 names different: declaration '' definition 'scene'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/glarea-common.c:42:36: style:inconclusive: Function 'perspectiveSet' argument 1 names different: declaration '' definition 'scene'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/glarea-common.c:93:27: style:inconclusive: Function 'scene_init' argument 1 names different: declaration '' definition 'cv'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/menus.c:210:29: style:inconclusive: Function 'create_statusbar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/menus.c:257:27: style:inconclusive: Function 'start_new_game' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/menus.c:377:27: style:inconclusive: Function 'create_menubar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/menus.c:448:32: style:inconclusive: Function 'create_play_toolbar' argument 1 names different: declaration '' definition 'game'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:123:37: style:inconclusive: Function 'move_unref' argument 1 names different: declaration '' definition 'm_'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:139:35: style:inconclusive: Function 'move_ref' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:150:36: style:inconclusive: Function 'move_copy' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:187:37: style:inconclusive: Function 'move_turns' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:193:35: style:inconclusive: Function 'move_dir' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:199:36: style:inconclusive: Function 'move_axis' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:40:35: style:inconclusive: Function 'move_set_turns' argument 1 names different: declaration '' definition 'm'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/move.c:40:42: style:inconclusive: Function 'move_set_turns' argument 2 names different: declaration '' definition 'turns'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/select.c:101:59: style:inconclusive: Function 'select_create' argument 5 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/select.c:131:42: style:inconclusive: Function 'select_destroy' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/select.c:140:42: style:inconclusive: Function 'select_disable' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/select.c:148:41: style:inconclusive: Function 'select_enable' argument 1 names different: declaration '' definition 'cs'. [funcArgNamesDifferentUnnamed] head gnubik-2.4.3/src/select.c:297:68: style:inconclusive: Function 'choose_items' argument 3 names different: declaration '' definition 'selection'. [funcArgNamesDifferentUnnamed] DONE