2024-04-17 03:22 ftp://ftp.de.debian.org/debian/pool/main/g/gtkboard/gtkboard_0.11pre0+cvs.2003.11.02.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sdl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 423 403 elapsed-time: 22.7 19.1 head-timing-info: old-timing-info: head results: gtkboard/src/ab.c:366:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gtkboard/src/ataxx.c:113:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/aaball.c:287:10: style: Local variable 'k' shadows outer variable [shadowVariable] gtkboard/src/aaball.c:248:12: note: Shadowed declaration gtkboard/src/aaball.c:287:10: note: Shadow variable gtkboard/src/aaball.c:107:14: style: Variable 'colbuf' is not assigned a value. [unassignedVariable] gtkboard/src/aaball.c:225:14: style: Variable 'colbuf' is not assigned a value. [unassignedVariable] gtkboard/src/aaball.c:226:9: style: Unused variable: j [unusedVariable] gtkboard/src/aaball.c:247:14: style: Variable 'colbuf' is not assigned a value. [unassignedVariable] gtkboard/src/antichess.c:383:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/blet.c:88:38: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'blet_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/blet.c:70:17: note: You might need to cast the function pointer here gtkboard/src/blet.c:88:38: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/blet.c:107:56: style: Parameter 'event' can be declared as pointer to const. However it seems that 'blet_event_handler' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/blet.c:74:23: note: You might need to cast the function pointer here gtkboard/src/blet.c:107:56: note: Parameter 'event' can be declared as pointer to const gtkboard/src/board.c:141:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] gtkboard/src/board.c:281:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] gtkboard/src/board.c:361:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] gtkboard/src/board.c:647:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_MAX [valueFlowBailoutIncompleteVar] gtkboard/src/ab.c:107:11: style: Variable 'newstate' can be declared as pointer to const [constVariablePointer] gtkboard/src/ab.c:56:27: style: Variable 'best' is assigned a value that is never used. [unreadVariable] gtkboard/src/ab.c:57:17: style: Variable 'first' is assigned a value that is never used. [unreadVariable] gtkboard/src/ab.c:286:22: style: Variable 'eval' is assigned a value that is never used. [unreadVariable] gtkboard/src/breakthrough.c:232:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] gtkboard/src/board.c:568: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] gtkboard/src/board.c:584: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] gtkboard/src/board.c:95:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/board.c:96:7: style: Variable 'rmove_tmp' can be declared as pointer to const [constVariablePointer] gtkboard/src/board.c:332:45: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gtkboard/src/board.c:629:10: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/board.c:95:14: style: Variable 'board' is assigned a value that is never used. [unreadVariable] gtkboard/src/ataxx.c:101:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/ataxx.c:139:29: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'ataxx_eval' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ataxx.c:71:14: note: You might need to cast the function pointer here gtkboard/src/ataxx.c:139:29: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/ataxx.c:160:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/ataxx.c:161:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/ataxx.c:162:6: style: Variable 'incx2' can be declared as const array [constVariable] gtkboard/src/ataxx.c:163:6: style: Variable 'incy2' can be declared as const array [constVariable] gtkboard/src/ataxx.c:168:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/ataxx.c:325:25: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'ataxx_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ataxx.c:73:17: note: You might need to cast the function pointer here gtkboard/src/ataxx.c:325:25: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/ataxx.c:333:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/ataxx.c:334:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/ataxx.c:202:9: style: Variable 'found' is assigned a value that is never used. [unreadVariable] gtkboard/src/ataxx.c:212:11: style: Variable 'found' is assigned a value that is never used. [unreadVariable] gtkboard/src/chess.c:504:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/breakthrough.c:182:25: style: Condition 'diff==0' is always true [knownConditionTrueFalse] gtkboard/src/breakthrough.c:177:12: note: Assuming that condition 'diff<0' is not redundant gtkboard/src/breakthrough.c:182:12: note: Assuming that condition 'diff>0' is not redundant gtkboard/src/breakthrough.c:182:25: note: Condition 'diff==0' is always true gtkboard/src/breakthrough.c:93:41: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/breakthrough.c:121:39: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/breakthrough.c:137:40: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/breakthrough.c:227:59: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/breakthrough.c:229:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/breakthrough.c:241:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/breakthrough.c:148:8: style: Variable 'doubled_pawn_penalty' is assigned a value that is never used. [unreadVariable] gtkboard/src/breakthrough.c:151:8: style: Variable 'blocked_pawn_penalty' is assigned a value that is never used. [unreadVariable] gtkboard/src/breakthrough.c:229:14: style: Variable 'board' is assigned a value that is never used. [unreadVariable] gtkboard/src/cpento.c:370:9: style: Variable 'results' can be declared as const array [constVariable] gtkboard/src/cpento.c:438:48: style: Parameter 'pento' can be declared as const array [constParameter] gtkboard/src/cpento.c:439:61: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/cpento.c:324:15: style: Unused variable: m [unusedVariable] gtkboard/src/dirmaze.c:266:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable arrow_blue_n_xpm [valueFlowBailoutIncompleteVar] gtkboard/src/dirmaze.c:93:35: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/dirmaze.c:115:30: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/dirmaze.c:193:13: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/dirmaze.c:194:13: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/dirmaze.c:240:53: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] gtkboard/src/dirmaze.c:254:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/dirmaze.c:149:11: style: Variable 'incx' is assigned a value that is never used. [unreadVariable] gtkboard/src/dirmaze.c:149:22: style: Variable 'incy' is assigned a value that is never used. [unreadVariable] gtkboard/src/dirmaze.c:208:6: style: Unused variable: x [unusedVariable] gtkboard/src/dirmaze.c:208:9: style: Unused variable: y [unusedVariable] gtkboard/src/dirmaze.c:242:9: style: Unused variable: j [unusedVariable] gtkboard/src/dirmaze.c:253:6: style: Unused variable: fg [unusedVariable] gtkboard/src/dotsandboxes.c:263:33: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/dotsandboxes.c:263:45: style: Parameter 'render' can be declared as pointer to const [constParameterPointer] gtkboard/src/dotsandboxes.c:376:34: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'dnb_get_render' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/dotsandboxes.c:203:20: note: You might need to cast the function pointer here gtkboard/src/dotsandboxes.c:376:34: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/dotsandboxes.c:394:23: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'dnb_search' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/dotsandboxes.c:207:16: note: You might need to cast the function pointer here gtkboard/src/dotsandboxes.c:394:23: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/eightqueens.c:96:31: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/eightqueens.c:88:14: style: Variable 'comment' is not assigned a value. [unassignedVariable] gtkboard/src/engine.c:77:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/engine.c:171:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/engine.c:323:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/engine.c:408:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] gtkboard/src/checkers.c:96:35: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'checkers_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/checkers.c:81:17: note: You might need to cast the function pointer here gtkboard/src/checkers.c:96:35: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/checkers.c:99:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/checkers.c:125:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/checkers.c:187:32: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'checkers_eval' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/checkers.c:82:14: note: You might need to cast the function pointer here gtkboard/src/checkers.c:187:32: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/checkers.c:220:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/engine.c:90:32: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gtkboard/src/engine.c:143:8: style: Variable 'old_game' can be declared as pointer to const [constVariablePointer] gtkboard/src/engine.c:228:34: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gtkboard/src/engine.c:240:8: style: Variable 'who_str' can be declared as pointer to const [constVariablePointer] gtkboard/src/engine.c:268:29: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gtkboard/src/engine.c:279:32: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gtkboard/src/engine.c:143:17: style: Variable 'old_game' is assigned a value that is never used. [unreadVariable] gtkboard/src/engine.c:399:8: style: Unused variable: line [unusedVariable] gtkboard/src/flw.c:258:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Return [valueFlowBailoutIncompleteVar] gtkboard/src/fifteen.c:127:30: style:inconclusive: Function 'fifteen_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. [funcArgNamesDifferent] gtkboard/src/fifteen.c:50:37: note: Function 'fifteen_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/fifteen.c:127:30: note: Function 'fifteen_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/fifteen.c:127:51: style:inconclusive: Function 'fifteen_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. [funcArgNamesDifferent] gtkboard/src/fifteen.c:50:62: note: Function 'fifteen_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/fifteen.c:127:51: note: Function 'fifteen_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/fifteen.c:55:25: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/fifteen.c:64:32: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/fifteen.c:81:32: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/fifteen.c:105:29: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/fifteen.c:119:8: style: Variable 'scorestr' can be declared as pointer to const [constVariablePointer] gtkboard/src/fifteen.c:194:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/fifteen.c:195:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/fifteen.c:223:42: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] gtkboard/src/fifteen.c:239:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/fifteen.c:225:9: style: Unused variable: j [unusedVariable] gtkboard/src/fifteen.c:239:15: style: Variable 'colors' is assigned a value that is never used. [unreadVariable] gtkboard/src/fifteen.c:238:6: style: Unused variable: fg [unusedVariable] gtkboard/src/fifteen.c:238:10: style: Unused variable: bg [unusedVariable] gtkboard/src/fifteen.c:238:14: style: Unused variable: i [unusedVariable] gtkboard/src/flw.c:279:29: error: Array 'flw_chain[5][5]' accessed at index flw_chain[5][*], which is out of bounds. [arrayIndexOutOfBounds] gtkboard/src/flw.c:89:3: warning:inconclusive: The buffer 'word' may not be null-terminated after the call to strncpy(). [terminateStrncpy] gtkboard/src/flw.c:287:16: style: The if condition is the same as the previous if condition [duplicateCondition] gtkboard/src/flw.c:272:16: note: First condition gtkboard/src/flw.c:287:16: note: Second condition gtkboard/src/flw.c:170:30: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'flw_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/flw.c:151:17: note: You might need to cast the function pointer here gtkboard/src/flw.c:170:30: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/flw.c:181:35: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/flw.c:214:23: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'flw_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/flw.c:149:17: note: You might need to cast the function pointer here gtkboard/src/flw.c:214:23: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/flw.c:132:9: style: Unused variable: j [unusedVariable] gtkboard/src/flw.c:240:9: style: Unused variable: j [unusedVariable] gtkboard/src/hash.c:101:29: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/hash.c:112:30: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/infiltrate.c:90:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/infiltrate.c:119:34: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'infiltrate_eval' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/infiltrate.c:72:14: note: You might need to cast the function pointer here gtkboard/src/infiltrate.c:119:34: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/infiltrate.c:144:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/hiq.c:142:15: style: Variable 'game_who_won' is reassigned a value before the old one has been used. [redundantAssignment] gtkboard/src/hiq.c:140:15: note: game_who_won is assigned gtkboard/src/hiq.c:142:15: note: game_who_won is overwritten gtkboard/src/hiq.c:177:30: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'hiq_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/hiq.c:142:17: note: You might need to cast the function pointer here gtkboard/src/hiq.c:177:30: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/hiq.c:182:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/hiq.c:183:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/hiq.c:223:29: style: Parameter 'event' can be declared as pointer to const. However it seems that 'hiq_event_handler' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/hiq.c:139:23: note: You might need to cast the function pointer here gtkboard/src/hiq.c:223:29: note: Parameter 'event' can be declared as pointer to const gtkboard/src/hiq.c:126:6: style: struct member 'Hiq_state::score' is never used. [unusedStructMember] gtkboard/src/kttour.c:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chess_wn_54_xpm [valueFlowBailoutIncompleteVar] gtkboard/src/knights.c:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_p [valueFlowBailoutIncompleteVar] gtkboard/src/kttour.c:125:28: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/kttour.c:158:30: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/kttour.c:144:17: style: Variable 'found' is assigned a value that is never used. [unreadVariable] gtkboard/src/kttour.c:191:19: style: Unused variable: min_deg_old [unusedVariable] gtkboard/src/knights.c:101:48: style: Parameter 'move' can be declared as pointer to const. However it seems that 'knights_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/knights.c:89:18: note: You might need to cast the function pointer here gtkboard/src/knights.c:101:48: note: Parameter 'move' can be declared as pointer to const gtkboard/src/knights.c:115:32: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/knights.c:145:30: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'knights_getmove_kb' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/knights.c:83:20: note: You might need to cast the function pointer here gtkboard/src/knights.c:145:30: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/knights.c:225:42: style: Parameter 'theboard' can be declared as pointer to const [constParameterPointer] gtkboard/src/knights.c:260:37: style: Parameter 'theboard' can be declared as pointer to const [constParameterPointer] gtkboard/src/knights.c:117:12: style: Variable 'j' is assigned a value that is never used. [unreadVariable] gtkboard/src/knights.c:133:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] gtkboard/src/knights.c:133:12: style: Variable 'j' is assigned a value that is never used. [unreadVariable] gtkboard/src/knights.c:133:16: style: Unused variable: k [unusedVariable] gtkboard/src/mastermind.c:310:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable red_X_40_xpm [valueFlowBailoutIncompleteVar] gtkboard/src/mastermind.c:394:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Up [valueFlowBailoutIncompleteVar] gtkboard/src/mastermind.c:226:8: style: Variable 'scorestr' can be declared as pointer to const [constVariablePointer] gtkboard/src/mastermind.c:249:35: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/mastermind.c:273:17: style: Variable 'bg' is assigned a value that is never used. [unreadVariable] gtkboard/src/mastermind.c:469:9: style: Variable 'cur_row' is assigned a value that is never used. [unreadVariable] gtkboard/src/maze.c:112:27: style:inconclusive: Function 'maze_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. [funcArgNamesDifferent] gtkboard/src/maze.c:58:34: note: Function 'maze_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/maze.c:112:27: note: Function 'maze_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/maze.c:112:48: style:inconclusive: Function 'maze_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. [funcArgNamesDifferent] gtkboard/src/maze.c:58:59: note: Function 'maze_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/maze.c:112:48: note: Function 'maze_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/maze.c:85:31: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'maze_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/maze.c:67:17: note: You might need to cast the function pointer here gtkboard/src/maze.c:85:31: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/maze.c:102:30: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/maze.c:143:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/maze.c:144:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/maze.c:166:13: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/maze.c:167:13: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/maze.c:197:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/maze.c:198:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/maze.c:269:48: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] gtkboard/src/maze.c:283:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/maze.c:234:14: style: Variable 'incx' is assigned a value that is never used. [unreadVariable] gtkboard/src/maze.c:235:14: style: Variable 'incy' is assigned a value that is never used. [unreadVariable] gtkboard/src/maze.c:233:12: style: Unused variable: k [unusedVariable] gtkboard/src/maze.c:271:9: style: Unused variable: j [unusedVariable] gtkboard/src/maze.c:282:6: style: Unused variable: fg [unusedVariable] gtkboard/src/menu.c:376:16: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gtkboard/src/move.c:81:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/move.c:35:31: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] gtkboard/src/move.c:63:37: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/move.c:76:25: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/move.c:98:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] gtkboard/src/move.c:170:21: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/move.c:181:25: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/memory.c:181:40: style: Parameter 'move' can be declared as pointer to const. However it seems that 'memory_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/memory.c:157:18: note: You might need to cast the function pointer here gtkboard/src/memory.c:181:40: note: Parameter 'move' can be declared as pointer to const gtkboard/src/memory.c:219:26: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'memory_animate' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/memory.c:153:17: note: You might need to cast the function pointer here gtkboard/src/memory.c:219:26: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/memory.c:270:26: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'memory_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/memory.c:152:17: note: You might need to cast the function pointer here gtkboard/src/memory.c:270:26: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/memory.c:222:13: style: Variable 'count' is assigned a value that is never used. [unreadVariable] gtkboard/src/memory.c:259:12: style: Variable 'swaps' is assigned a value that is never used. [unreadVariable] gtkboard/src/ninemm.c:165:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ninemm_bg_xpm [valueFlowBailoutIncompleteVar] gtkboard/src/othello.c:193:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_space [valueFlowBailoutIncompleteVar] gtkboard/src/chess.c:193:23: warning: Either the condition '(diffx)<0' is redundant or there is division by zero at line 193. [zerodivcond] gtkboard/src/chess.c:193:25: note: Assuming that condition '(diffx)<0' is not redundant gtkboard/src/chess.c:193:23: note: Division by zero gtkboard/src/chess.c:194:23: warning: Either the condition '(diffy)<0' is redundant or there is division by zero at line 194. [zerodivcond] gtkboard/src/chess.c:194:25: note: Assuming that condition '(diffy)<0' is not redundant gtkboard/src/chess.c:194:23: note: Division by zero gtkboard/src/chess.c:551:6: style: Local variable 'oldx' shadows outer variable [shadowVariable] gtkboard/src/chess.c:341:12: note: Shadowed declaration gtkboard/src/chess.c:551:6: note: Shadow variable gtkboard/src/chess.c:551:16: style: Local variable 'oldy' shadows outer variable [shadowVariable] gtkboard/src/chess.c:341:23: note: Shadowed declaration gtkboard/src/chess.c:551:16: note: Shadow variable gtkboard/src/chess.c:155:28: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'chess_newstate' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/chess.c:142:18: note: You might need to cast the function pointer here gtkboard/src/chess.c:155:28: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/chess.c:155:39: style: Parameter 'move' can be declared as pointer to const. However it seems that 'chess_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/chess.c:142:18: note: You might need to cast the function pointer here gtkboard/src/chess.c:155:39: note: Parameter 'move' can be declared as pointer to const gtkboard/src/chess.c:188:30: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/chess.c:291:28: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/ninemm.c:179:35: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/chess.c:329:39: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/chess.c:496:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/chess.c:497:8: style: Variable 'move_list' can be declared as pointer to const [constVariablePointer] gtkboard/src/chess.c:627:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/chess.c:727:8: style: Variable 'realp' can be declared as pointer to const [constVariablePointer] gtkboard/src/chess.c:731:6: style: Variable 'incxr' can be declared as const array [constVariable] gtkboard/src/chess.c:732:6: style: Variable 'incyr' can be declared as const array [constVariable] gtkboard/src/chess.c:733:6: style: Variable 'incxb' can be declared as const array [constVariable] gtkboard/src/ninemm.c:210:6: style: Unused variable: val [unusedVariable] gtkboard/src/chess.c:734:6: style: Variable 'incyb' can be declared as const array [constVariable] gtkboard/src/chess.c:735:6: style: Variable 'incxn' can be declared as const array [constVariable] gtkboard/src/chess.c:736:6: style: Variable 'incyn' can be declared as const array [constVariable] gtkboard/src/chess.c:889:30: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'chess_eval' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/chess.c:139:14: note: You might need to cast the function pointer here gtkboard/src/chess.c:889:30: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/chess.c:164:58: style: Variable 'to_y' is assigned a value that is never used. [unreadVariable] gtkboard/src/chess.c:165:63: style: Variable 'to_y' is assigned a value that is never used. [unreadVariable] gtkboard/src/chess.c:557:7: style: Variable 'val' is assigned a value that is never used. [unreadVariable] gtkboard/src/chess.c:726:7: style: Unused variable: realbuf [unusedVariable] gtkboard/src/chess.c:727:8: style: Variable 'realp' is assigned a value that is never used. [unreadVariable] gtkboard/src/chess.c:730:15: style: Unused variable: x [unusedVariable] gtkboard/src/chess.c:730:18: style: Unused variable: y [unusedVariable] gtkboard/src/othello.c:233:8: style: Variable '*movp' is reassigned a value before the old one has been used. [redundantAssignment] gtkboard/src/othello.c:227:9: note: *movp is assigned gtkboard/src/othello.c:233:8: note: *movp is overwritten gtkboard/src/othello.c:80:26: style: Parameter 'game' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:153:35: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:237:34: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'othello_who_won' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/othello.c:84:17: note: You might need to cast the function pointer here gtkboard/src/othello.c:237:34: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/othello.c:241:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/othello.c:310:39: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:350:41: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:372:41: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:463:42: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/othello.c:550:36: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'othello_eval_incr' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/othello.c:86:19: note: You might need to cast the function pointer here gtkboard/src/othello.c:550:36: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/othello.c:550:47: style: Parameter 'move' can be declared as pointer to const. However it seems that 'othello_eval_incr' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/othello.c:86:19: note: You might need to cast the function pointer here gtkboard/src/othello.c:550:47: note: Parameter 'move' can be declared as pointer to const gtkboard/src/othello.c:562:38: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'othello_use_incr_eval' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/othello.c:87:23: note: You might need to cast the function pointer here gtkboard/src/othello.c:562:38: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/othello.c:242:12: style: Variable 'found' is assigned a value that is never used. [unreadVariable] gtkboard/src/othello.c:240:42: style: Unused variable: x [unusedVariable] gtkboard/src/othello.c:240:45: style: Unused variable: y [unusedVariable] gtkboard/src/plot4.c:96:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/plot4.c:118:26: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/plot4.c:128:25: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'plot4_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/plot4.c:70:17: note: You might need to cast the function pointer here gtkboard/src/plot4.c:128:25: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/plot4.c:194:29: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/plot4.c:239:36: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/plot4.c:268:27: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'plot4_movegen' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/plot4.c:69:17: note: You might need to cast the function pointer here gtkboard/src/plot4.c:268:27: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/plot4.c:295:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/antichess.c:142:23: warning: Either the condition '(diffx)<0' is redundant or there is division by zero at line 142. [zerodivcond] gtkboard/src/antichess.c:142:25: note: Assuming that condition '(diffx)<0' is not redundant gtkboard/src/antichess.c:142:23: note: Division by zero gtkboard/src/antichess.c:143:23: warning: Either the condition '(diffy)<0' is redundant or there is division by zero at line 143. [zerodivcond] gtkboard/src/antichess.c:143:25: note: Assuming that condition '(diffy)<0' is not redundant gtkboard/src/antichess.c:143:23: note: Division by zero gtkboard/src/antichess.c:425:6: style: Local variable 'oldx' shadows outer variable [shadowVariable] gtkboard/src/antichess.c:234:12: note: Shadowed declaration gtkboard/src/antichess.c:425:6: note: Shadow variable gtkboard/src/antichess.c:425:16: style: Local variable 'oldy' shadows outer variable [shadowVariable] gtkboard/src/antichess.c:234:23: note: Shadowed declaration gtkboard/src/antichess.c:425:16: note: Shadow variable gtkboard/src/antichess.c:137:30: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/antichess.c:225:28: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/antichess.c:377:8: style: Variable 'who_str' can be declared as const array [constVariable] gtkboard/src/antichess.c:403:37: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/antichess.c:467:6: style: Variable 'incxr' can be declared as const array [constVariable] gtkboard/src/antichess.c:468:6: style: Variable 'incyr' can be declared as const array [constVariable] gtkboard/src/antichess.c:469:6: style: Variable 'incxb' can be declared as const array [constVariable] gtkboard/src/antichess.c:470:6: style: Variable 'incyb' can be declared as const array [constVariable] gtkboard/src/antichess.c:471:6: style: Variable 'incxn' can be declared as const array [constVariable] gtkboard/src/antichess.c:472:6: style: Variable 'incyn' can be declared as const array [constVariable] gtkboard/src/antichess.c:655:43: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/antichess.c:716:64: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/antichess.c:719:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/antichess.c:432:7: style: Variable 'val' is assigned a value that is never used. [unreadVariable] gtkboard/src/antichess.c:466:15: style: Unused variable: x [unusedVariable] gtkboard/src/antichess.c:466:18: style: Unused variable: y [unusedVariable] gtkboard/src/pentaline.c:360:8: style: Variable '*eval' is reassigned a value before the old one has been used. [redundantAssignment] gtkboard/src/pentaline.c:356:9: note: *eval is assigned gtkboard/src/pentaline.c:360:8: note: *eval is overwritten gtkboard/src/pentaline.c:99:6: style: Local variable 'incx' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:292:12: note: Shadowed declaration gtkboard/src/pentaline.c:99:6: note: Shadow variable gtkboard/src/pentaline.c:100:6: style: Local variable 'incy' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:293:12: note: Shadowed declaration gtkboard/src/pentaline.c:100:6: note: Shadow variable gtkboard/src/pentaline.c:112:8: style: Local variable 'found' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:98:11: note: Shadowed declaration gtkboard/src/pentaline.c:112:8: note: Shadow variable gtkboard/src/pentaline.c:112:19: style: Local variable 'val' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:98:6: note: Shadowed declaration gtkboard/src/pentaline.c:112:19: note: Shadow variable gtkboard/src/pentaline.c:161:6: style: Local variable 'incx' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:292:12: note: Shadowed declaration gtkboard/src/pentaline.c:161:6: note: Shadow variable gtkboard/src/pentaline.c:162:6: style: Local variable 'incy' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:293:12: note: Shadowed declaration gtkboard/src/pentaline.c:162:6: note: Shadow variable gtkboard/src/pentaline.c:278:6: style: Local variable 'incx' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:292:12: note: Shadowed declaration gtkboard/src/pentaline.c:278:6: note: Shadow variable gtkboard/src/pentaline.c:279:6: style: Local variable 'incy' shadows outer variable [shadowVariable] gtkboard/src/pentaline.c:293:12: note: Shadowed declaration gtkboard/src/pentaline.c:279:6: note: Shadow variable gtkboard/src/pentaline.c:99:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/pentaline.c:100:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/pentaline.c:101:6: style: Variable 'nbrx' can be declared as const array [constVariable] gtkboard/src/pentaline.c:102:6: style: Variable 'nbry' can be declared as const array [constVariable] gtkboard/src/pentaline.c:103:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/pentaline.c:161:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/pentaline.c:162:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/pentaline.c:201:29: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'pentaline_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/pentaline.c:71:17: note: You might need to cast the function pointer here gtkboard/src/pentaline.c:201:29: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/pentaline.c:232:31: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/pentaline.c:278:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/pentaline.c:279:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/pentaline.c:295:65: style: Parameter 'move' can be declared as pointer to const [constParameterPointer] gtkboard/src/pentaline.c:372:35: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/pentaline.c:417:43: style: Parameter 'move' can be declared as pointer to const. However it seems that 'pentaline_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/pentaline.c:80:18: note: You might need to cast the function pointer here gtkboard/src/pentaline.c:417:43: note: Parameter 'move' can be declared as pointer to const gtkboard/src/pentaline.c:98:6: style: Unused variable: val [unusedVariable] gtkboard/src/pentaline.c:203:6: style: Unused variable: val [unusedVariable] gtkboard/src/pentaline.c:375:6: style: Unused variable: i [unusedVariable] gtkboard/src/prefs.c:193:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:291:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:386:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:438:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:465:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:484:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:501:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/prefs.c:534:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/quarto.c:146:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] gtkboard/src/pacman.c:278:29: style:inconclusive: Function 'pacman_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. [funcArgNamesDifferent] gtkboard/src/pacman.c:139:36: note: Function 'pacman_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/pacman.c:278:29: note: Function 'pacman_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/pacman.c:278:50: style:inconclusive: Function 'pacman_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. [funcArgNamesDifferent] gtkboard/src/pacman.c:139:61: note: Function 'pacman_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/pacman.c:278:50: note: Function 'pacman_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/pacman.c:159:32: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/pacman.c:303:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/pacman.c:304:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/pacman.c:305:6: style: Variable 'wallmask' can be declared as const array [constVariable] gtkboard/src/pacman.c:372:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/pacman.c:456:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/pacman.c:198:13: style: Variable 'count' is assigned a value that is never used. [unreadVariable] gtkboard/src/pacman.c:377:5: style: Variable 'fg' is assigned a value that is never used. [unreadVariable] gtkboard/src/rgb.c:180:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/rgb.c:130:14: style: Unused variable: comment [unusedVariable] gtkboard/src/sound.c:58:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] gtkboard/src/sound.c:113:29: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] gtkboard/src/sound.c:136:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] gtkboard/src/sound.c:55:6: style: Unused variable: i [unusedVariable] gtkboard/src/quarto.c:104:36: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/quarto.c:205:41: style: Parameter 'move' can be declared as pointer to const. However it seems that 'quarto_get_render' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/quarto.c:82:20: note: You might need to cast the function pointer here gtkboard/src/quarto.c:205:41: note: Parameter 'move' can be declared as pointer to const gtkboard/src/quarto.c:233:33: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'quarto_reset_uistate' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/quarto.c:81:23: note: You might need to cast the function pointer here gtkboard/src/quarto.c:233:33: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/quarto.c:289:8: style: Variable 'colors' can be declared as pointer to const [constVariablePointer] gtkboard/src/quarto.c:128:6: style: Unused variable: and1 [unusedVariable] gtkboard/src/quarto.c:128:12: style: Unused variable: and2 [unusedVariable] gtkboard/src/stack.c:136:29: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:204:9: 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] gtkboard/src/prefs.c:245:17: 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] gtkboard/src/prefs.c:391:9: 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] gtkboard/src/prefs.c:55:37: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:73:42: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:275:36: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:312:35: style: Parameter 'score1' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:312:62: style: Parameter 'score2' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:323:35: style: Parameter 'score1' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:323:62: style: Parameter 'score2' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:334:33: style: Parameter 'score1' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:334:60: style: Parameter 'score2' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:403:38: style: Parameter 'score' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:452:37: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] gtkboard/src/prefs.c:279:7: style: Unused variable: linebuf [unusedVariable] gtkboard/src/prefs.c:347:23: style: Unused variable: namep [unusedVariable] gtkboard/src/prefs.c:407:9: style: Unused variable: j [unusedVariable] gtkboard/src/prefs.c:427:9: style: Unused variable: tempstr [unusedVariable] gtkboard/src/tetris.c:377:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Down [valueFlowBailoutIncompleteVar] gtkboard/src/samegame.c:120:26: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/samegame.c:123:6: style: Variable 'incx' can be declared as const array [constVariable] gtkboard/src/samegame.c:124:6: style: Variable 'incy' can be declared as const array [constVariable] gtkboard/src/samegame.c:143:8: style: Variable 'scorestr' can be declared as pointer to const [constVariablePointer] gtkboard/src/samegame.c:153:42: style: Parameter 'move' can be declared as pointer to const. However it seems that 'samegame_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/samegame.c:92:18: note: You might need to cast the function pointer here gtkboard/src/samegame.c:153:42: note: Parameter 'move' can be declared as pointer to const gtkboard/src/samegame.c:342:33: style: Parameter 'newboard' can be declared as pointer to const [constParameterPointer] gtkboard/src/samegame.c:342:49: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/samegame.c:395:28: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/samegame.c:178:6: style: Unused variable: tmp [unusedVariable] gtkboard/src/towers.c:245:25: style: Parameter 'game' can be declared as pointer to const [constParameterPointer] gtkboard/src/towers.c:276:36: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/towers.c:286:8: style: Variable 'scorestr' can be declared as pointer to const [constVariablePointer] gtkboard/src/towers.c:298:33: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/towers.c:399:30: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'towers_get_render' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/towers.c:254:20: note: You might need to cast the function pointer here gtkboard/src/towers.c:399:30: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/ui.c:241:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:249:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:539:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:678:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:1020:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:1198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:1228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:1273:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/ui.c:1310:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtkboard/src/wordtris.c:677:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Right [valueFlowBailoutIncompleteVar] gtkboard/src/tetris.c:293:36: style: The if condition is the same as the previous if condition [duplicateCondition] gtkboard/src/tetris.c:289:36: note: First condition gtkboard/src/tetris.c:293:36: note: Second condition gtkboard/src/tetris.c:121:16: style: Variable 'game_scorecmp' is reassigned a value before the old one has been used. [redundantAssignment] gtkboard/src/tetris.c:119:16: note: game_scorecmp is assigned gtkboard/src/tetris.c:121:16: note: game_scorecmp is overwritten gtkboard/src/tetris.c:358:29: style:inconclusive: Function 'tetris_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. [funcArgNamesDifferent] gtkboard/src/tetris.c:91:36: note: Function 'tetris_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/tetris.c:358:29: note: Function 'tetris_getmove_kb' argument 1 names different: declaration 'cur_pos' definition 'pos'. gtkboard/src/tetris.c:358:50: style:inconclusive: Function 'tetris_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. [funcArgNamesDifferent] gtkboard/src/tetris.c:91:61: note: Function 'tetris_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/tetris.c:358:50: note: Function 'tetris_getmove_kb' argument 3 names different: declaration 'move' definition 'movp'. gtkboard/src/tetris.c:236:6: style: Local variable 'level' shadows outer variable [shadowVariable] gtkboard/src/tetris.c:104:12: note: Shadowed declaration gtkboard/src/tetris.c:236:6: note: Shadow variable gtkboard/src/tetris.c:143:40: style: Parameter 'move' can be declared as pointer to const. However it seems that 'tetris_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/tetris.c:118:18: note: You might need to cast the function pointer here gtkboard/src/tetris.c:143:40: note: Parameter 'move' can be declared as pointer to const gtkboard/src/tetris.c:148:6: style: Variable 'linepts' can be declared as const array [constVariable] gtkboard/src/tetris.c:158:29: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/tetris.c:180:24: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] gtkboard/src/tetris.c:171:6: style: Unused variable: i [unusedVariable] gtkboard/src/tetris.c:232:13: style: Variable 'count' is assigned a value that is never used. [unreadVariable] gtkboard/src/wordtris.c:587:9: style: Condition 'pos->state' is always true [knownConditionTrueFalse] gtkboard/src/wordtris.c:740:20: error: Division by zero. [zerodiv] gtkboard/src/wordtris.c:738:2: note: After for loop, sum has value 0 gtkboard/src/wordtris.c:740:20: note: Division by zero gtkboard/src/wordtris.c:596:42: style: Parameter 'move' can be declared as pointer to const. However it seems that 'wordtris_newstate' is a callback function, if 'move' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/wordtris.c:555:18: note: You might need to cast the function pointer here gtkboard/src/wordtris.c:596:42: note: Parameter 'move' can be declared as pointer to const gtkboard/src/wordtris.c:639:37: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/wordtris.c:753:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/wordtris.c:541:6: style: Unused variable: i [unusedVariable] gtkboard/src/wordtris.c:542:14: style: Unused variable: emptyline [unusedVariable] gtkboard/src/wordtris.c:543:14: style: Unused variable: dottedline [unusedVariable] gtkboard/src/wordtris.c:753:8: style: Variable 'board' is assigned a value that is never used. [unreadVariable] gtkboard/src/ui.c:472:6: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] gtkboard/src/ui.c:485:7: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] gtkboard/src/ui.c:497:44: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] gtkboard/src/ui.c:519:44: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] gtkboard/src/ui.c:1022:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1078:9: 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] gtkboard/src/ui.c:1086:17: 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] gtkboard/src/ui.c:1088:9: 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] gtkboard/src/ui.c:1090:10: 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] gtkboard/src/ui.c:1091:17: 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] gtkboard/src/ui.c:1100:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1113:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1115:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1117:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1119:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1121:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1123:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkboard/src/ui.c:1125:25: 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] gtkboard/src/ui.c:1168:9: 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] gtkboard/src/ui.c:1195:15: error: Resource leak: ftmp [resourceLeak] gtkboard/src/ui.c:1048:4: error: Memory leak: group_item.path [memleak] gtkboard/src/ui.c:852:7: style: Local variable 'i' shadows outer variable [shadowVariable] gtkboard/src/ui.c:669:9: note: Shadowed declaration gtkboard/src/ui.c:852:7: note: Shadow variable gtkboard/src/ui.c:422:8: style: Variable 'game' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:465:15: style: Variable 'who_str' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:542:41: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_send_make_move_bg' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ui.c:1371:15: note: You might need to cast the function pointer here gtkboard/src/ui.c:542:41: note: Parameter 'data' can be declared as pointer to const gtkboard/src/ui.c:668:8: style: Variable 'wheur' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:668:23: style: Variable 'bheur' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:1190:47: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] gtkboard/src/ui.c:1190:63: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] gtkboard/src/ui.c:1190:77: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] gtkboard/src/ui.c:1192:9: style: Variable 'tmpfilename' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:1268:9: style: Variable 'group' can be declared as pointer to const [constVariablePointer] gtkboard/src/ui.c:1331:34: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_sound_init' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ui.c:1361:29: note: You might need to cast the function pointer here gtkboard/src/ui.c:1331:34: note: Parameter 'data' can be declared as pointer to const gtkboard/src/ui.c:262:6: style: Unused variable: ret [unusedVariable] gtkboard/src/ui.c:466:6: style: Unused variable: who [unusedVariable] gtkboard/src/ui.c:466:11: style: Unused variable: len [unusedVariable] gtkboard/src/ui.c:695:11: style: Unused variable: handle [unusedVariable] gtkboard/src/ui.c:696:11: style: Unused variable: error [unusedVariable] gtkboard/src/stopgate.c:477:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] gtkboard/src/stopgate.c:358:7: style: Local variable 'incx' shadows outer variable [shadowVariable] gtkboard/src/stopgate.c:267:12: note: Shadowed declaration gtkboard/src/stopgate.c:358:7: note: Shadow variable gtkboard/src/stopgate.c:358:41: style: Local variable 'incy' shadows outer variable [shadowVariable] gtkboard/src/stopgate.c:268:12: note: Shadowed declaration gtkboard/src/stopgate.c:358:41: note: Shadow variable gtkboard/src/stopgate.c:302:33: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] gtkboard/src/stopgate.c:353:8: style: Variable 'board' can be declared as pointer to const [constVariablePointer] gtkboard/src/stopgate.c:481:28: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'stopgate_getmove' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/stopgate.c:256:17: note: You might need to cast the function pointer here gtkboard/src/stopgate.c:481:28: note: Parameter 'pos' can be declared as pointer to const gtkboard/src/stopgate.c:273:6: style: Unused variable: wscore [unusedVariable] gtkboard/src/stopgate.c:273:14: style: Unused variable: bscore [unusedVariable] gtkboard/src/stopgate.c:273:22: style: Unused variable: i [unusedVariable] gtkboard/src/stopgate.c:273:25: style: Unused variable: j [unusedVariable] gtkboard/src/stopgate.c:305:13: style: Variable 'count' is assigned a value that is never used. [unreadVariable] gtkboard/src/stopgate.c:484:25: style: Variable 'found' is assigned a value that is never used. [unreadVariable] gtkboard/src/stopgate.c:484:6: style: Unused variable: i [unusedVariable] gtkboard/src/stopgate.c:484:9: style: Unused variable: j [unusedVariable] gtkboard/src/stopgate.c:484:12: style: Unused variable: sw_len [unusedVariable] diff: head gtkboard/src/ab.c:366:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/ab.c:57:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/antichess.c:117:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/antichess.c:383:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/ataxx.c:113:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/ataxx.c:81:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/blet.c:69:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/board.c:281:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] head gtkboard/src/board.c:332:45: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] head gtkboard/src/board.c:361:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] head gtkboard/src/board.c:647:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_MAX [valueFlowBailoutIncompleteVar] head gtkboard/src/breakthrough.c:137:40: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] head gtkboard/src/breakthrough.c:232:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/breakthrough.c:84:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/checkers.c:87:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/chess.c:140:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/chess.c:504:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/dirmaze.c:266:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable arrow_blue_n_xpm [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/dirmaze.c:71:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/dotsandboxes.c:208:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/eightqueens.c:74:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/engine.c:171:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/engine.c:268:29: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] head gtkboard/src/engine.c:279:32: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] head gtkboard/src/engine.c:323:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/engine.c:408:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/fifteen.c:91:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/flw.c:145:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/flw.c:258:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Return [valueFlowBailoutIncompleteVar] head gtkboard/src/knights.c:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_p [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/knights.c:87:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/kttour.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/kttour.c:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chess_wn_54_xpm [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/mastermind.c:194:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/mastermind.c:310:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable red_X_40_xpm [valueFlowBailoutIncompleteVar] head gtkboard/src/mastermind.c:394:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Up [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/maze.c:63:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/memory.c:150:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/move.c:51:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/move.c:81:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/othello.c:171:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] head gtkboard/src/othello.c:193:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_space [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/pacman.c:145:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/pentaline.c:74:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:193:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:291:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:334:33: style: Parameter 'score1' can be declared as pointer to const [constParameterPointer] head gtkboard/src/prefs.c:334:60: style: Parameter 'score2' can be declared as pointer to const [constParameterPointer] head gtkboard/src/prefs.c:386:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:438:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:465:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:484:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:501:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/prefs.c:534:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/prefs.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] head gtkboard/src/quarto.c:146:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head gtkboard/src/quarto.c:233:33: style: Parameter 'pos' can be declared as pointer to const. However it seems that 'quarto_reset_uistate' is a callback function, if 'pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/quarto.c:81:23: note: You might need to cast the function pointer here gtkboard/src/quarto.c:233:33: note: Parameter 'pos' can be declared as pointer to const 2.13.0 gtkboard/src/quarto.c:79:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/rgb.c:66:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/samegame.c:89:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] head gtkboard/src/sound.c:113:29: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] 2.13.0 gtkboard/src/stopgate.c:383:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] head gtkboard/src/stopgate.c:477:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/tetris.c:110:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/tetris.c:377:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Down [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/towers.c:247:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1020:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1273:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1310:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:1331:34: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_sound_init' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ui.c:1361:29: note: You might need to cast the function pointer here gtkboard/src/ui.c:1331:34: note: Parameter 'data' can be declared as pointer to const head gtkboard/src/ui.c:249:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:539:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] head gtkboard/src/ui.c:542:41: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_send_make_move_bg' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkboard/src/ui.c:1371:15: note: You might need to cast the function pointer here gtkboard/src/ui.c:542:41: note: Parameter 'data' can be declared as pointer to const head gtkboard/src/ui.c:678:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] 2.13.0 gtkboard/src/wordtris.c:544:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head gtkboard/src/wordtris.c:677:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Right [valueFlowBailoutIncompleteVar] DONE