2024-04-12 22:53 ftp://ftp.de.debian.org/debian/pool/main/s/sjaakii/sjaakii_1.4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.13.0 head-info: 646f869 (2024-04-12 10:43:30 +0200) count: 152 129 elapsed-time: 129.8 326.1 head-timing-info: old-timing-info: head results: SjaakII/src/chess.cc:35:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] SjaakII/src/hash/hashkey.c:37:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PIECE_TYPES [valueFlowBailoutIncompleteVar] SjaakII/src/hash/evalhash.c:71:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] SjaakII/src/hash/evalhash.c:100:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] SjaakII/src/misc/aligned_malloc.c:23:7: error: Common realloc mistake: 'pool' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/misc/aligned_malloc.c:36:25: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] SjaakII/src/hash/hashtable.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hash_table_entry_t [valueFlowBailoutIncompleteVar] SjaakII/src/hash/hashtable.c:171:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable generation [valueFlowBailoutIncompleteVar] SjaakII/src/eval/pst.cc:53:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WHITE [valueFlowBailoutIncompleteVar] SjaakII/src/chess.cc:97:4: style:inconclusive: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] SjaakII/src/misc/cfgpath.c:56:0: error: #error cfgpath.h functions have not been implemented for your platform! Please send patches. [preprocessorErrorDirective] SjaakII/src/hash/hashtable.c:151:39: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] SjaakII/src/hash/hashtable.c:161:46: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] SjaakII/src/misc/genrand.c:71:25: style: Variable 'mag01' can be declared as const array [constVariable] SjaakII/src/misc/pipe2.c:81:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] SjaakII/src/misc/pipe2.c:136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] SjaakII/src/misc/pipe2.c:174:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] SjaakII/src/rules/game.cc:14:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] SjaakII/src/misc/pipe2.c:164:14: style: Variable 'ready' is assigned a value that is never used. [unreadVariable] SjaakII/src/misc/sprt.c:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRT_UNKNOWN [valueFlowBailoutIncompleteVar] SjaakII/src/rules/san.cc:26:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable piece_symbol_string [valueFlowBailoutIncompleteVar] SjaakII/src/rules/move.cc:64:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable square_names [valueFlowBailoutIncompleteVar] SjaakII/src/rules/move.cc:147:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable div_file [valueFlowBailoutIncompleteVar] SjaakII/src/misc/sprt.c:38:18: style: Variable 'p_draw' is assigned a value that is never used. [unreadVariable] SjaakII/src/misc/sprt.c:40:16: style: Variable 'elo' is assigned a value that is never used. [unreadVariable] SjaakII/src/misc/sprt.c:73:18: style: Variable 'p_draw' is assigned a value that is never used. [unreadVariable] SjaakII/src/misc/sprt.c:75:16: style: Variable 'elo' is assigned a value that is never used. [unreadVariable] SjaakII/src/test.cc:51:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WHITE [valueFlowBailoutIncompleteVar] SjaakII/src/rules/move.cc:219:7: style: Redundant initialization for 'fp'. The initialized value is overwritten before it is read. [redundantInitialization] SjaakII/src/rules/move.cc:212:12: note: fp is initialized SjaakII/src/rules/move.cc:219:7: note: fp is overwritten SjaakII/src/rules/move.cc:54:16: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/rules/move.cc:37:16: note: Shadowed declaration SjaakII/src/rules/move.cc:54:16: note: Shadow variable SjaakII/src/rules/move.cc:179:16: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/rules/move.cc:158:8: note: Shadowed declaration SjaakII/src/rules/move.cc:179:16: note: Shadow variable SjaakII/src/rules/move.cc:32:14: style: Variable 'dash' is assigned a value that is never used. [unreadVariable] SjaakII/src/rules/move.cc:138:10: style: Variable 'n' is assigned a value that is never used. [unreadVariable] SjaakII/src/rules/san.cc:26:10: style: Redundant initialization for 'piece'. The initialized value is overwritten before it is read. [redundantInitialization] SjaakII/src/rules/san.cc:13:15: note: piece is initialized SjaakII/src/rules/san.cc:26:10: note: piece is overwritten SjaakII/src/rules/san.cc:53:11: style: Local variable 'from' shadows outer variable [shadowVariable] SjaakII/src/rules/san.cc:24:8: note: Shadowed declaration SjaakII/src/rules/san.cc:53:11: note: Shadow variable SjaakII/src/rules/san.cc:54:11: style: Local variable 'to' shadows outer variable [shadowVariable] SjaakII/src/rules/san.cc:23:8: note: Shadowed declaration SjaakII/src/rules/san.cc:54:11: note: Shadow variable SjaakII/src/rules/san.cc:58:16: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/rules/san.cc:25:8: note: Shadowed declaration SjaakII/src/rules/san.cc:58:16: note: Shadow variable SjaakII/src/rules/san.cc:77:11: style: Local variable 'from' shadows outer variable [shadowVariable] SjaakII/src/rules/san.cc:24:8: note: Shadowed declaration SjaakII/src/rules/san.cc:77:11: note: Shadow variable SjaakII/src/rules/san.cc:78:11: style: Local variable 'to' shadows outer variable [shadowVariable] SjaakII/src/rules/san.cc:23:8: note: Shadowed declaration SjaakII/src/rules/san.cc:78:11: note: Shadow variable SjaakII/src/rules/san.cc:42:15: style: Variable 'to2' is assigned a value that is never used. [unreadVariable] SjaakII/src/rules/san.cc:77:16: style: Variable 'from' is assigned a value that is never used. [unreadVariable] SjaakII/src/rules/squares.cc:47:28: style: C-style pointer casting [cstyleCast] SjaakII/src/rules/squares.cc:53:23: style: C-style pointer casting [cstyleCast] SjaakII/src/rules/squares.cc:57:23: style: C-style pointer casting [cstyleCast] SjaakII/src/sjef.c:105:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:205:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_fd [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:348:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:597:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] SjaakII/src/sjef.c:489:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] SjaakII/src/sjef.c:741:16: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] SjaakII/src/sjef.c:138:7: error: Common realloc mistake: 'history' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/sjef.c:812:10: error: Common realloc mistake: 'args' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/sjef.c:874:10: error: Common realloc mistake: 'args' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/sjef.c:900:10: error: Common realloc mistake: 'args' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/sjef.c:294:9: style: Redundant initialization for 'line'. The initialized value is overwritten before it is read. [redundantInitialization] SjaakII/src/sjef.c:288:15: note: line is initialized SjaakII/src/sjef.c:294:9: note: line is overwritten SjaakII/src/sjef.c:668:19: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:583:10: note: Shadowed declaration SjaakII/src/sjef.c:668:19: note: Shadow variable SjaakII/src/sjef.c:999:13: style: Local variable 'n' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:984:8: note: Shadowed declaration SjaakII/src/sjef.c:999:13: note: Shadow variable SjaakII/src/sjef.c:1034:14: style: Local variable 'n' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:984:8: note: Shadowed declaration SjaakII/src/sjef.c:1034:14: note: Shadow variable SjaakII/src/sjef.c:1040:16: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:583:10: note: Shadowed declaration SjaakII/src/sjef.c:1040:16: note: Shadow variable SjaakII/src/sjef.c:1056:15: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:583:10: note: Shadowed declaration SjaakII/src/sjef.c:1056:15: note: Shadow variable SjaakII/src/sjef.c:1213:16: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:583:10: note: Shadowed declaration SjaakII/src/sjef.c:1213:16: note: Shadow variable SjaakII/src/sjef.c:1239:19: style: Local variable 'n' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:984:8: note: Shadowed declaration SjaakII/src/sjef.c:1239:19: note: Shadow variable SjaakII/src/sjef.c:1240:18: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/sjef.c:1213:16: note: Shadowed declaration SjaakII/src/sjef.c:1240:18: note: Shadow variable SjaakII/src/sjef.c:102:39: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] SjaakII/src/sjef.c:487:33: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:563:10: style: Variable 'variant_name' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:564:10: style: Variable 'logfilename' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:565:10: style: Variable 'epdfile' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:685:22: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:1214:16: style: Variable 'reason' can be declared as pointer to const [constVariablePointer] SjaakII/src/sjef.c:1056:15: style: Unused variable: s [unusedVariable] SjaakII/src/xboard.cc:874:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable piece_symbol_string [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:997:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1065:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable abort_search [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1136:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1169:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1282:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1300:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1350:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1510:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SEARCH_DEPTH [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1579:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_GAME_ENDED_REPEAT [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1782:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_DISABLED [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1884:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_ENABLE_DROP [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:2170:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_DISABLED [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:2223:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLACK [valueFlowBailoutIncompleteVar] SjaakII/src/xboard.cc:1245:13: style: Condition 's' is always true [knownConditionTrueFalse] SjaakII/src/xboard.cc:1245:18: style: Condition '*s' is always true [knownConditionTrueFalse] SjaakII/src/xboard.cc:585:7: error: Common realloc mistake: 'custom_variants' nulled but not freed upon failure [memleakOnRealloc] SjaakII/src/xboard.cc:1134:9: warning: Either the condition 'game' is redundant or there is possible null pointer dereference: game. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1153:14: note: Assuming that condition 'game' is not redundant SjaakII/src/xboard.cc:1134:9: note: Null pointer dereference SjaakII/src/xboard.cc:1166:8: warning: Either the condition 'game' is redundant or there is possible null pointer dereference: game. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1193:14: note: Assuming that condition 'game' is not redundant SjaakII/src/xboard.cc:1166:8: note: Null pointer dereference SjaakII/src/xboard.cc:1167:9: warning: Either the condition 'game' is redundant or there is possible null pointer dereference: game. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1193:14: note: Assuming that condition 'game' is not redundant SjaakII/src/xboard.cc:1167:9: note: Null pointer dereference SjaakII/src/xboard.cc:1187:37: warning: Either the condition 'p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1185:17: note: Assuming that condition 'p' is not redundant SjaakII/src/xboard.cc:1187:37: note: Null pointer dereference SjaakII/src/xboard.cc:1197:25: warning: Either the condition 's' is redundant or there is possible null pointer dereference: ponder_input. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1245:13: note: Assuming that condition 's' is not redundant SjaakII/src/xboard.cc:1244:20: note: Assignment to 's=ponder_input' SjaakII/src/xboard.cc:1197:25: note: Null pointer dereference SjaakII/src/xboard.cc:1205:25: warning: Either the condition 's' is redundant or there is possible null pointer dereference: ponder_input. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1245:13: note: Assuming that condition 's' is not redundant SjaakII/src/xboard.cc:1244:20: note: Assignment to 's=ponder_input' SjaakII/src/xboard.cc:1205:25: note: Null pointer dereference SjaakII/src/xboard.cc:1241:25: warning: Either the condition 's' is redundant or there is possible null pointer dereference: ponder_input. [nullPointerRedundantCheck] SjaakII/src/xboard.cc:1245:13: note: Assuming that condition 's' is not redundant SjaakII/src/xboard.cc:1244:20: note: Assignment to 's=ponder_input' SjaakII/src/xboard.cc:1241:25: note: Null pointer dereference SjaakII/src/xboard.cc:585:25: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:604:12: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:605:12: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:606:12: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:653:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:684:9: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:1186:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2276:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2282:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2288:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2315:10: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2346:28: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2368:12: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2520:15: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2611:21: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2912:21: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2926:27: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2928:28: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2934:21: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:3948:18: style: C-style pointer casting [cstyleCast] SjaakII/src/xboard.cc:2092:16: style: Redundant initialization for 'num_aliases'. The initialized value is overwritten before it is read. [redundantInitialization] SjaakII/src/xboard.cc:2082:20: note: num_aliases is initialized SjaakII/src/xboard.cc:2092:16: note: num_aliases is overwritten SjaakII/src/xboard.cc:551:16: style: The scope of the variable 'newline' can be reduced. [variableScope] SjaakII/src/xboard.cc:1334:27: style: The scope of the variable 'nodes_searched' can be reduced. [variableScope] SjaakII/src/xboard.cc:2241:9: style: The scope of the variable 'load_variant_file' can be reduced. [variableScope] SjaakII/src/xboard.cc:628:10: style: Local variable 'f' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:528:14: note: Shadowed declaration SjaakII/src/xboard.cc:628:10: note: Shadow variable SjaakII/src/xboard.cc:668:16: style: Local variable 's' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:638:13: note: Shadowed declaration SjaakII/src/xboard.cc:668:16: note: Shadow variable SjaakII/src/xboard.cc:880:22: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:873:11: note: Shadowed declaration SjaakII/src/xboard.cc:880:22: note: Shadow variable SjaakII/src/xboard.cc:921:22: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:908:14: note: Shadowed declaration SjaakII/src/xboard.cc:921:22: note: Shadow variable SjaakII/src/xboard.cc:929:22: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:908:14: note: Shadowed declaration SjaakII/src/xboard.cc:929:22: note: Shadow variable SjaakII/src/xboard.cc:952:16: style: Local variable 'f' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:528:14: note: Shadowed declaration SjaakII/src/xboard.cc:952:16: note: Shadow variable SjaakII/src/xboard.cc:1485:17: style: Local variable 'score' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:1441:8: note: Shadowed declaration SjaakII/src/xboard.cc:1485:17: note: Shadow variable SjaakII/src/xboard.cc:1559:22: style: Local variable 'n' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:1539:8: note: Shadowed declaration SjaakII/src/xboard.cc:1559:22: note: Shadow variable SjaakII/src/xboard.cc:1737:16: style: Local variable 'buf' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:529:14: note: Shadowed declaration SjaakII/src/xboard.cc:1737:16: note: Shadow variable SjaakII/src/xboard.cc:2732:14: style: Local variable 'depth' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2227:8: note: Shadowed declaration SjaakII/src/xboard.cc:2732:14: note: Shadow variable SjaakII/src/xboard.cc:2915:25: style: Local variable 'p' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2910:22: note: Shadowed declaration SjaakII/src/xboard.cc:2915:25: note: Shadow variable SjaakII/src/xboard.cc:3295:17: style: Local variable 'depth' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2227:8: note: Shadowed declaration SjaakII/src/xboard.cc:3295:17: note: Shadow variable SjaakII/src/xboard.cc:3330:17: style: Local variable 'depth' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2227:8: note: Shadowed declaration SjaakII/src/xboard.cc:3330:17: note: Shadow variable SjaakII/src/xboard.cc:3368:14: style: Local variable 'depth' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2227:8: note: Shadowed declaration SjaakII/src/xboard.cc:3368:14: note: Shadow variable SjaakII/src/xboard.cc:3375:14: style: Local variable 'depth' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2227:8: note: Shadowed declaration SjaakII/src/xboard.cc:3375:14: note: Shadow variable SjaakII/src/xboard.cc:3389:18: style: Local variable 'game' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:2224:12: note: Shadowed declaration SjaakII/src/xboard.cc:3389:18: note: Shadow variable SjaakII/src/xboard.cc:3802:16: style: Local variable 'f' shadows outer variable [shadowVariable] SjaakII/src/xboard.cc:528:14: note: Shadowed declaration SjaakII/src/xboard.cc:3802:16: note: Shadow variable SjaakII/src/xboard.cc:2580:16: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:2733:16: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3045:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3053:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3061:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3069:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3077:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3085:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:3093:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] SjaakII/src/xboard.cc:1334:42: style: Variable 'nodes_searched' is assigned a value that is never used. [unreadVariable] SjaakII/src/xboard.cc:2435:12: style: Variable 'n' is assigned a value that is never used. [unreadVariable] SjaakII/src/xboard.cc:2721:15: style: Variable 'n' is assigned a value that is never used. [unreadVariable] SjaakII/src/xboard.cc:2823:17: style: Variable 's' is assigned a value that is never used. [unreadVariable] SjaakII/src/xboard.cc:2731:22: style: Variable 'p' is assigned a value that is never used. [unreadVariable] diff: head SjaakII/src/hash/evalhash.c:100:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head SjaakII/src/hash/hashtable.c:171:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable generation [valueFlowBailoutIncompleteVar] head SjaakII/src/misc/pipe2.c:136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head SjaakII/src/misc/pipe2.c:174:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head SjaakII/src/rules/move.cc:147:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable div_file [valueFlowBailoutIncompleteVar] head SjaakII/src/sjef.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head SjaakII/src/sjef.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head SjaakII/src/sjef.c:205:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_fd [valueFlowBailoutIncompleteVar] head SjaakII/src/sjef.c:348:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] head SjaakII/src/sjef.c:597:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1065:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable abort_search [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1136:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1169:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1282:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1300:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1350:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1510:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SEARCH_DEPTH [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1579:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEARCH_GAME_ENDED_REPEAT [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1782:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_DISABLED [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:1884:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_ENABLE_DROP [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:2170:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MATE_SEARCH_DISABLED [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:2223:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLACK [valueFlowBailoutIncompleteVar] head SjaakII/src/xboard.cc:997:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE