2026-05-01 23:29 ftp://ftp.de.debian.org/debian/pool/main/f/fruit/fruit_2.1.dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 261 261 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: fruit-2.1.dfsg-1.orig/src/book.cpp:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/book.cpp:72:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/book.cpp:176:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/book.cpp:203:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/hash.cpp:85:12: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/hash.cpp:110:18: style: The scope of the variable 'count' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move.h:23:43: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fruit-2.1.dfsg-1.orig/src/book.cpp:81:8: style: The scope of the variable 'best_move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:82:8: style: The scope of the variable 'best_score' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:83:8: style: The scope of the variable 'pos' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:85:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:86:8: style: The scope of the variable 'score' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:88:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:135:21: style: The scope of the variable 'mid' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/book.cpp:192:8: style: The scope of the variable 'b' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/fen.cpp:195:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/fen.cpp:195:12: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/fen.cpp:197:8: style: The scope of the variable 'len' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:69:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:69:14: style: The scope of the variable 'value' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:125:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:141:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:141:17: style: The scope of the variable 'value' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/list.cpp:138:73: style:inconclusive: Function 'list_filter' argument 4 names different: declaration '' definition 'keep'. [funcArgNamesDifferentUnnamed] fruit-2.1.dfsg-1.orig/src/attack.cpp:40:8: style: The scope of the variable 'size' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:251:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:252:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:253:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:350:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:350:12: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:380:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:380:15: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:381:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:461:15: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:463:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/attack.cpp:470:12: style: Variable 'inc_ptr' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/move.cpp:154:15: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:34:8: style: The scope of the variable 'size' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:215:16: style: The scope of the variable 'pos' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:216:11: style: The scope of the variable 'size' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:217:8: style: The scope of the variable 'square' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:218:8: style: The scope of the variable 'order' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:408:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/board.cpp:295:16: style: Variable 'sq' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/move_check.cpp:280:9: style: The scope of the variable 'check' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:331:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:332:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:333:8: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:334:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:335:8: style: The scope of the variable 'capture' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_check.cpp:336:8: style: The scope of the variable 'pin' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:58:15: style: The scope of the variable 'pos' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:60:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:62:8: style: The scope of the variable 'pawn' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:62:14: style: The scope of the variable 'rook' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:225:15: style: The scope of the variable 'pos' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:226:8: style: The scope of the variable 'rook' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:401:8: style: The scope of the variable 'sq_64' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:402:11: style: The scope of the variable 'hash_xor' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:532:8: style: The scope of the variable 'sq_64' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:533:11: style: The scope of the variable 'hash_xor' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:664:8: style: The scope of the variable 'from_64' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:664:17: style: The scope of the variable 'to_64' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:665:8: style: The scope of the variable 'piece_12' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:666:8: style: The scope of the variable 'piece_index' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_do.cpp:667:11: style: The scope of the variable 'hash_xor' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_evasion.cpp:78:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_evasion.cpp:264:14: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/option.cpp:121:11: warning: Either the condition 'opt==NULL' is redundant or there is possible null pointer dereference: opt. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/option.cpp:119:12: note: Assuming that condition 'opt==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/option.cpp:121:11: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/option.cpp:114:15: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:226:30: style: Variable 'board->square[from]' is reassigned a value before the old one has been used. [redundantAssignment] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:224:30: note: board->square[from] is assigned fruit-2.1.dfsg-1.orig/src/move_legal.cpp:226:30: note: board->square[from] is overwritten fruit-2.1.dfsg-1.orig/src/move_legal.cpp:31:8: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:31:13: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:113:8: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:113:13: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:188:8: style: The scope of the variable 'king' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:244:54: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:49:8: style: Variable 'opp' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/move_legal.cpp:133:8: style: Variable 'opp' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/posix.cpp:123:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/posix.cpp:149:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/posix.cpp:169:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/protocol.cpp:574:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/protocol.cpp:592:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/pv.cpp:21:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:258:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:260:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:260:52: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:266:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:274:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:282:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:294:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:302:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:310:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:318:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:334:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:342:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] fruit-2.1.dfsg-1.orig/src/protocol.cpp:269:29: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:267:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:269:29: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:277:30: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:275:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:277:30: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:285:23: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:283:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:285:23: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:297:22: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:295:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:297:22: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:305:27: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:303:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:305:27: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:313:33: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:311:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:313:33: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:337:29: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:335:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:337:29: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:345:30: warning: Either the condition 'ptr==NULL' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] fruit-2.1.dfsg-1.orig/src/protocol.cpp:343:18: note: Assuming that condition 'ptr==NULL' is not redundant fruit-2.1.dfsg-1.orig/src/protocol.cpp:345:30: note: Null pointer dereference fruit-2.1.dfsg-1.orig/src/protocol.cpp:260:13: style: Variable 'ptr' is reassigned a value before the old one has been used. [redundantAssignment] fruit-2.1.dfsg-1.orig/src/protocol.cpp:258:8: note: ptr is assigned fruit-2.1.dfsg-1.orig/src/protocol.cpp:260:13: note: ptr is overwritten fruit-2.1.dfsg-1.orig/src/protocol.cpp:237:11: style: The scope of the variable 'time_max' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:237:21: style: The scope of the variable 'alloc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:434:17: style: The scope of the variable 'ptr' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:435:9: style: The scope of the variable 'move_string' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:436:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:533:9: style: The scope of the variable 'ponder_string' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/protocol.cpp:535:11: style: Variable 'pv' can be declared as pointer to const [constVariablePointer] fruit-2.1.dfsg-1.orig/src/protocol.cpp:248:10: style: Variable 'nodes' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/protocol.cpp:321:16: style: Variable 'nodes' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:117:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:118:18: style: The scope of the variable 'inc_ptr' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:197:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:405:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:614:14: style: The scope of the variable 'to' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:637:8: style: The scope of the variable 'from' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:638:8: style: The scope of the variable 'me' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:639:8: style: The scope of the variable 'inc' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/move_gen.cpp:640:8: style: The scope of the variable 'pawn' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:223:17: style: Condition 'depth>=1' is always true [knownConditionTrueFalse] fruit-2.1.dfsg-1.orig/src/search.cpp:135:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:280:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:280:14: style: The scope of the variable 'value' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:280:21: style: The scope of the variable 'flags' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:280:28: style: The scope of the variable 'depth' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:280:35: style: The scope of the variable 'max_depth' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:281:17: style: The scope of the variable 'pv' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:282:11: style: The scope of the variable 'time' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:283:11: style: The scope of the variable 'node_nb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:284:8: style: The scope of the variable 'mate' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:285:9: style: The scope of the variable 'move_string' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:285:27: style: The scope of the variable 'pv_string' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:351:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:351:14: style: The scope of the variable 'move_pos' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:351:24: style: The scope of the variable 'move_nb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:352:11: style: The scope of the variable 'time' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:353:11: style: The scope of the variable 'node_nb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:354:9: style: The scope of the variable 'move_string' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:432:11: style: The scope of the variable 'time' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:432:17: style: The scope of the variable 'speed' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:432:24: style: The scope of the variable 'cpu' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:433:11: style: The scope of the variable 'node_nb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search.cpp:380:16: style: Variable 'timer' can be declared as pointer to const [constVariablePointer] fruit-2.1.dfsg-1.orig/src/search.cpp:364:18: style: Variable 'move_nb' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/search.cpp:366:15: style: Variable 'time' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/search.cpp:367:18: style: Variable 'node_nb' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/pawn.cpp:192:21: style: C-style pointer casting [cstyleCast] fruit-2.1.dfsg-1.orig/src/pawn.cpp:99:8: style: The scope of the variable 'first' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:99:15: style: The scope of the variable 'last' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:99:21: style: The scope of the variable 'count' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:100:11: style: The scope of the variable 'rev' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:9: style: The scope of the variable 'backward' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:19: style: The scope of the variable 'candidate' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:30: style: The scope of the variable 'doubled' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:39: style: The scope of the variable 'isolated' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:49: style: The scope of the variable 'open' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:274:55: style: The scope of the variable 'passed' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:275:8: style: The scope of the variable 't1' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:275:12: style: The scope of the variable 't2' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:276:8: style: The scope of the variable 'n' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:277:8: style: The scope of the variable 'bits' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/pawn.cpp:359:17: style: Variable 'passed' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/pawn.cpp:412:23: style: Variable 'passed' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/see.cpp:250:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/see.cpp:251:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/see.cpp:253:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/see.cpp:301:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/see.cpp:301:12: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/util.cpp:43:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/util.cpp:75:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/util.cpp:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/util.cpp:119:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fruit-2.1.dfsg-1.orig/src/util.cpp:169:14: style: C-style pointer casting [cstyleCast] fruit-2.1.dfsg-1.orig/src/util.cpp:142:8: style: The scope of the variable 'c1' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/util.cpp:142:12: style: The scope of the variable 'c2' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/trans.cpp:370:26: style: The statement 'if (entry->date!=trans->date) entry->date=trans->date' is logically equivalent to 'entry->date=trans->date'. [duplicateConditionalAssign] fruit-2.1.dfsg-1.orig/src/trans.cpp:370:54: note: Assignment 'entry->date=trans->date' fruit-2.1.dfsg-1.orig/src/trans.cpp:370:26: note: Condition 'entry->date!=trans->date' is redundant fruit-2.1.dfsg-1.orig/src/trans.cpp:140:19: style: C-style pointer casting [cstyleCast] fruit-2.1.dfsg-1.orig/src/trans.cpp:244:8: style: The scope of the variable 'score' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/vector.cpp:21:8: style: The scope of the variable 'dist' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/vector.cpp:21:14: style: The scope of the variable 'tmp' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:212:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:378:8: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:473:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:563:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:563:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:585:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:585:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:605:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:605:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:625:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:625:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:645:8: style: The scope of the variable 'i' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:645:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:773:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:808:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/sort.cpp:808:24: style: The scope of the variable 'promote' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/material.cpp:99:25: style: C-style pointer casting [cstyleCast] fruit-2.1.dfsg-1.orig/src/material.cpp:371:15: style: Variable 'b_min' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/material.cpp:405:15: style: Variable 'b_maj' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/material.cpp:507:15: style: Variable 'w_min' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/material.cpp:541:15: style: Variable 'w_maj' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/search_full.cpp:233:11: style: The scope of the variable 'move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:234:8: style: The scope of the variable 'new_depth' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1024:8: style: The scope of the variable 'trans_move' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1024:20: style: The scope of the variable 'trans_depth' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1024:33: style: The scope of the variable 'trans_min_value' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1024:50: style: The scope of the variable 'trans_max_value' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1107:14: style: The scope of the variable 'to' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:1108:8: style: The scope of the variable 'capture' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/search_full.cpp:118:48: style: Parameter 'board' can be declared as pointer to const [constParameterPointer] fruit-2.1.dfsg-1.orig/src/search_full.cpp:536:33: style: Variable 'value' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:218:8: style: The scope of the variable 'wb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:218:12: style: The scope of the variable 'bb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:318:8: style: The scope of the variable 'me' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:318:12: style: The scope of the variable 'opp' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:320:8: style: The scope of the variable 'pawn_file' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:321:8: style: The scope of the variable 'prom' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:557:8: style: The scope of the variable 'me' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:557:12: style: The scope of the variable 'opp' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:558:8: style: The scope of the variable 'opp_flag' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:561:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:564:16: style: The scope of the variable 'unit' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:565:8: style: The scope of the variable 'rook_file' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:565:19: style: The scope of the variable 'king_file' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:566:8: style: The scope of the variable 'king' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:567:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:771:12: style: The scope of the variable 'opp' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:772:8: style: The scope of the variable 'from' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:776:8: style: The scope of the variable 'king' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:777:17: style: The scope of the variable 'ptr' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:778:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:779:8: style: The scope of the variable 'attack_tot' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:780:8: style: The scope of the variable 'piece_nb' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:910:8: style: The scope of the variable 'att' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:910:13: style: The scope of the variable 'def' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:912:8: style: The scope of the variable 'file' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:912:14: style: The scope of the variable 'rank' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:913:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:914:8: style: The scope of the variable 'min' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:914:13: style: The scope of the variable 'max' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:915:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1501:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1501:15: style: The scope of the variable 'inc_2' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1502:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1716:8: style: The scope of the variable 'delta' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1716:15: style: The scope of the variable 'inc_2' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1717:8: style: The scope of the variable 'sq' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1873:8: style: The scope of the variable 'piece' can be reduced. [variableScope] fruit-2.1.dfsg-1.orig/src/eval.cpp:1122:11: style: Variable 'rank' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1182:8: style: Variable 'opp' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1509:7: style: Variable 'wk' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1573:7: style: Variable 'wk' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1580:7: style: Variable 'bk' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1617:7: style: Variable 'wk' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1620:7: style: Variable 'wn' is assigned a value that is never used. [unreadVariable] fruit-2.1.dfsg-1.orig/src/eval.cpp:1724:7: style: Variable 'wk' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 fruit-2.1.dfsg-1.orig/src/board.cpp:298:13: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fruit-2.1.dfsg-1.orig/src/board.cpp:300:15: note: Found duplicate branches for 'if' and 'else'. fruit-2.1.dfsg-1.orig/src/board.cpp:298:13: note: Found duplicate branches for 'if' and 'else'. head fruit-2.1.dfsg-1.orig/src/list.cpp:138:73: style:inconclusive: Function 'list_filter' argument 4 names different: declaration '' definition 'keep'. [funcArgNamesDifferentUnnamed] DONE