2025-07-03 08:50 ftp://ftp.de.debian.org/debian/pool/main/g/gnushogi/gnushogi_1.5~git20140725.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-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 90b0e14 (2025-07-02 15:41:51 +0200) count: 225 224 elapsed-time: 12.2 11.7 head-timing-info: old-timing-info: head results: gnushogi-1.5pre/gnushogi/attacks.c:49:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/attacks.c:49:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/cursesdsp.c:150:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:204:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:211:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:373:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:390:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:407:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:498:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:960:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:970:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:999:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1008:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1018:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1026:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1037:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1148:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:1207:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONREAD [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/book.c:378:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/book.c:659:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/cursesdsp.c:155:33: style: Parameter 'bstline' can be declared as pointer to const. However it seems that 'Curses_ShowLine' is a callback function, if 'bstline' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnushogi-1.5pre/gnushogi/cursesdsp.c:1257:29: note: You might need to cast the function pointer here gnushogi-1.5pre/gnushogi/cursesdsp.c:155:33: note: Parameter 'bstline' can be declared as pointer to const gnushogi-1.5pre/gnushogi/cursesdsp.c:277:49: style: Parameter 'bstline' can be declared as pointer to const. However it seems that 'Curses_ShowResults' is a callback function, if 'bstline' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnushogi-1.5pre/gnushogi/cursesdsp.c:1269:29: note: You might need to cast the function pointer here gnushogi-1.5pre/gnushogi/cursesdsp.c:277:49: note: Parameter 'bstline' can be declared as pointer to const gnushogi-1.5pre/gnushogi/genmove.c:111:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/genmove.c:186:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/init-common.c:151:15: style: Condition 'x>=0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/init-common.c:149:26: note: Assignment 'x=-1', assigned value is -1 gnushogi-1.5pre/gnushogi/init-common.c:151:15: note: Condition 'x>=0' is always false gnushogi-1.5pre/gnushogi/init.c:543:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/main.c:271:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/makepattern.c:266:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:266:13: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:267:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:267:13: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:271:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:271:17: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:275:21: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:275:21: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:280:25: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:280:25: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:283:21: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:283:21: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:288:25: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:288:25: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:292:21: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:292:21: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:297:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:297:17: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:302:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:302:13: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:303:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:303:13: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:304:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:304:13: note: Null pointer dereference gnushogi-1.5pre/gnushogi/makepattern.c:305:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assuming allocation function fails gnushogi-1.5pre/gnushogi/makepattern.c:265:16: note: Assignment 'fd=fopen(patternincfile,"w")', assigned value is 0 gnushogi-1.5pre/gnushogi/makepattern.c:305:12: note: Null pointer dereference gnushogi-1.5pre/gnushogi/pat2inc.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/pat2inc.c:54:11: style: Variable 'patternfile' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/pat2inc.c:55:11: style: Variable 'patternincfile' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/pattern-common.c:36:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/pattern.c:178:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/pattern.c:688:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OPENING_SEQUENCE [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/init.c:226:28: style:inconclusive: Function 'diagonal' argument 1 names different: declaration 'delta' definition 'd'. [funcArgNamesDifferent] gnushogi-1.5pre/gnushogi/gnushogi.h:773:35: note: Function 'diagonal' argument 1 names different: declaration 'delta' definition 'd'. gnushogi-1.5pre/gnushogi/init.c:226:28: note: Function 'diagonal' argument 1 names different: declaration 'delta' definition 'd'. gnushogi-1.5pre/gnushogi/rawdsp.c:243:0: error: #error "Need setvbuf() or setlinebuf() to compile gnushogi!" [preprocessorErrorDirective] gnushogi-1.5pre/gnushogi/rawdsp.c:243:6: error: #error "Need setvbuf() or setlinebuf() to compile gnushogi!" [preprocessorErrorDirective] gnushogi-1.5pre/gnushogi/commondsp.c:436:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/commondsp.c:1170:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/commondsp.c:1525:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/search.c:1132:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/search.c:1319:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/search.c:1453:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/search.c:1546:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bd [valueFlowBailoutIncompleteVar] gnushogi-1.5pre/gnushogi/pattern.c:584:33: style:inconclusive: Function 'DisplayPattern' argument 2 names different: declaration 'first_field' definition 'n'. [funcArgNamesDifferent] gnushogi-1.5pre/gnushogi/pattern.h:95:32: note: Function 'DisplayPattern' argument 2 names different: declaration 'first_field' definition 'n'. gnushogi-1.5pre/gnushogi/pattern.c:584:33: note: Function 'DisplayPattern' argument 2 names different: declaration 'first_field' definition 'n'. gnushogi-1.5pre/gnushogi/pattern.c:675:44: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/pattern.c:795:20: style: Variable 'd' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/pattern.c:816:20: style: Variable 'd' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/pattern.c:839:20: style: Variable 'd' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/book.c:104:37: style: Condition 't!=0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/book.c:104:25: note: Assuming that condition 'f!=0' is not redundant gnushogi-1.5pre/gnushogi/book.c:104:12: note: Assuming that condition 'f==t' is not redundant gnushogi-1.5pre/gnushogi/book.c:104:37: note: Condition 't!=0' is always false gnushogi-1.5pre/gnushogi/book.c:698:13: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'ULONG {aka unsigned long}'. [invalidPrintfArgType_sint] gnushogi-1.5pre/gnushogi/book.c:698:13: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'ULONG {aka unsigned long}'. [invalidPrintfArgType_sint] gnushogi-1.5pre/gnushogi/book.c:798:37: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ULONG {aka unsigned long}'. [invalidPrintfArgType_sint] gnushogi-1.5pre/gnushogi/book.c:798:37: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gnushogi-1.5pre/gnushogi/book.c:1048:5: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] gnushogi-1.5pre/gnushogi/book.c:79:11: style: Local variable 'promoted' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/gnushogi.h:774:26: note: Shadowed declaration gnushogi-1.5pre/gnushogi/book.c:79:11: note: Shadow variable gnushogi-1.5pre/gnushogi/book.c:222:15: style: Local variable 'color' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/gnushogi.h:687:29: note: Shadowed declaration gnushogi-1.5pre/gnushogi/book.c:222:15: note: Shadow variable gnushogi-1.5pre/gnushogi/book.c:226:26: style: Local variable 'c' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/book.c:175:12: note: Shadowed declaration gnushogi-1.5pre/gnushogi/book.c:226:26: note: Shadow variable gnushogi-1.5pre/gnushogi/book.c:171:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/book.c:174:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/book.c:256:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/book.c:576:57: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/book.c:582:42: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/sizetest.c:247:5: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] gnushogi-1.5pre/gnushogi/sizetest.c:259:5: style: Variable 'l' is assigned an expression that holds the same value. [redundantAssignment] gnushogi-1.5pre/gnushogi/sizetest.c:252:7: note: l is assigned '(long)sizeof(unsigned char[9*9][9*9])' here. gnushogi-1.5pre/gnushogi/sizetest.c:259:5: note: Variable 'l' is assigned an expression that holds the same value. gnushogi-1.5pre/gnushogi/tcontrl.c:175:29: style: Condition 'TCcount<0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/tcontrl.c:173:39: note: Assignment 'TCcount=10-10', assigned value is 0 gnushogi-1.5pre/gnushogi/tcontrl.c:175:29: note: Condition 'TCcount<0' is always false gnushogi-1.5pre/gnushogi/tcontrl.c:187:25: style: Condition 'TCcount<0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/tcontrl.c:185:35: note: Assignment 'TCcount=10-10', assigned value is 0 gnushogi-1.5pre/gnushogi/tcontrl.c:187:25: note: Condition 'TCcount<0' is always false gnushogi-1.5pre/gnushogi/tcontrl.c:197:25: style: Condition 'TCcount<0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/tcontrl.c:195:35: note: Assignment 'TCcount=10-10', assigned value is 0 gnushogi-1.5pre/gnushogi/tcontrl.c:197:25: note: Condition 'TCcount<0' is always false gnushogi-1.5pre/gnushogi/genmove.c:129:15: warning: Either the condition '(t)>=0' is redundant or the array 'Pindex[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/genmove.c:124:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/genmove.c:129:15: note: Negative array index gnushogi-1.5pre/gnushogi/genmove.c:130:31: warning: Either the condition '(t)>=0' is redundant or the array 'Pindex[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/genmove.c:124:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/genmove.c:130:31: note: Negative array index gnushogi-1.5pre/gnushogi/genmove.c:133:14: warning: Either the condition '(t)>=0' is redundant or the array 'color[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/genmove.c:124:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/genmove.c:133:14: note: Negative array index gnushogi-1.5pre/gnushogi/genmove.c:1561:45: style: Local variable 'sqking' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/genmove.c:40:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/genmove.c:1561:45: note: Shadow variable gnushogi-1.5pre/gnushogi/genmove.c:1562:11: style: Local variable 'InCheck' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/genmove.c:41:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/genmove.c:1562:11: note: Shadow variable gnushogi-1.5pre/gnushogi/genmove.c:408:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:408:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1013:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1013:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1120:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1120:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1214:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1214:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1293:19: style: Variable 'firstnode' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1430:20: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1430:27: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1433:18: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:1560:18: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/genmove.c:673:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/genmove.c:687:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/genmove.c:1394:20: style: Variable 'num' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/util.c:512:5: error: Expression 'pdst[--i]=psrc[i]' depends on order of evaluation of side effects [unknownEvaluationOrder] gnushogi-1.5pre/gnushogi/util.c:556:9: error: Expression 'pdst[--i]=psrc[i]' depends on order of evaluation of side effects [unknownEvaluationOrder] gnushogi-1.5pre/gnushogi/util.c:147:24: style: Variable 'ptbl' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/util.c:512:5: style: Variable 'psrc' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/util.c:527:21: style: Variable 'ptbl' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/util.c:556:9: style: Variable 'psrc' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/search.c:1086:24: warning: Either the condition '(t)>=0' is redundant or the array 'Pindex[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1152:9: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1153:31: note: Calling function 'UpdatePieceList', 2nd argument 't' value is -1 gnushogi-1.5pre/gnushogi/search.c:1086:24: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1092:19: warning: Either the condition '(t)>=0' is redundant or the array 'board[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1133:9: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1134:31: note: Calling function 'UpdatePieceList', 2nd argument 't' value is -1 gnushogi-1.5pre/gnushogi/search.c:1092:19: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1291:25: warning: Either the condition 'f>(9*9)' is redundant or the array 'svalue[81]' is accessed at index 81, which is out of bounds. [arrayIndexOutOfBoundsCond] gnushogi-1.5pre/gnushogi/search.c:1275:11: note: Assuming that condition 'f>(9*9)' is not redundant gnushogi-1.5pre/gnushogi/search.c:1291:25: note: Array index out of bounds gnushogi-1.5pre/gnushogi/search.c:1331:20: warning: Either the condition '(t)>=0' is redundant or the array 'Mvboard[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1324:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1331:20: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1334:14: warning: Either the condition '(t)>=0' is redundant or the array 'color[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1324:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1334:14: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1337:15: warning: Either the condition '(t)>=0' is redundant or the array 'svalue[81]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1324:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1337:15: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1341:15: warning: Either the condition '(t)>=0' is redundant or the array 'Pindex[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1324:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1341:15: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1342:31: warning: Either the condition '(t)>=0' is redundant or the array 'Pindex[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1324:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1342:31: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:1491:20: warning: Either the condition '(t)>=0' is redundant or the array 'Mvboard[0]' is accessed at index -1, which is out of bounds. [negativeIndex] gnushogi-1.5pre/gnushogi/search.c:1490:13: note: Assuming that condition '(t)>=0' is not redundant gnushogi-1.5pre/gnushogi/search.c:1491:20: note: Negative array index gnushogi-1.5pre/gnushogi/search.c:769:10: style: Redundant initialization for 'best'. The initialized value is overwritten before it is read. [redundantInitialization] gnushogi-1.5pre/gnushogi/search.c:527:16: note: best is initialized gnushogi-1.5pre/gnushogi/search.c:769:10: note: best is overwritten gnushogi-1.5pre/gnushogi/search.c:66:22: style: Variable 'g' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/search.c:96:23: style: Variable 'q' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/search.c:1233:24: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/search.c:1399:26: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/search.c:1400:19: style: Parameter 'tempb' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/search.c:1401:19: style: Parameter 'tempc' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/search.c:1402:19: style: Parameter 'tempsf' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/search.c:1403:19: style: Parameter 'tempst' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/eval.c:1137:60: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] gnushogi-1.5pre/gnushogi/eval.c:1727:5: warning: Either the condition '(ad=Kdist[c2][sq])<=10' is redundant or the array 'EnemyKingDistanceBonus[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] gnushogi-1.5pre/gnushogi/eval.c:1727:5: note: Assuming that condition '(ad=Kdist[c2][sq])<=10' is not redundant gnushogi-1.5pre/gnushogi/eval.c:1727:5: note: Array index out of bounds gnushogi-1.5pre/gnushogi/eval.c:1744:5: warning: Either the condition '(ad=Kdist[c2][sq])<=10' is redundant or the array 'EnemyKingDistanceBonus[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] gnushogi-1.5pre/gnushogi/eval.c:1744:5: note: Assuming that condition '(ad=Kdist[c2][sq])<=10' is not redundant gnushogi-1.5pre/gnushogi/eval.c:1744:5: note: Array index out of bounds gnushogi-1.5pre/gnushogi/eval.c:1760:5: warning: Either the condition '(ad=Kdist[c2][sq])<=10' is redundant or the array 'EnemyKingDistanceBonus[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] gnushogi-1.5pre/gnushogi/eval.c:1760:5: note: Assuming that condition '(ad=Kdist[c2][sq])<=10' is not redundant gnushogi-1.5pre/gnushogi/eval.c:1760:5: note: Array index out of bounds gnushogi-1.5pre/gnushogi/eval.c:1777:5: warning: Either the condition '(ad=Kdist[c2][sq])<=10' is redundant or the array 'EnemyKingDistanceBonus[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] gnushogi-1.5pre/gnushogi/eval.c:1777:5: note: Assuming that condition '(ad=Kdist[c2][sq])<=10' is not redundant gnushogi-1.5pre/gnushogi/eval.c:1777:5: note: Array index out of bounds gnushogi-1.5pre/gnushogi/eval.c:1672:24: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1668. [multiCondition] gnushogi-1.5pre/gnushogi/eval.c:1668:19: note: first condition gnushogi-1.5pre/gnushogi/eval.c:1672:24: note: else if condition is opposite to first condition gnushogi-1.5pre/gnushogi/eval.c:1694:24: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1686. [multiCondition] gnushogi-1.5pre/gnushogi/eval.c:1686:19: note: first condition gnushogi-1.5pre/gnushogi/eval.c:1694:24: note: else if condition is opposite to first condition gnushogi-1.5pre/gnushogi/eval.c:1137:63: style: Comparing expression of type 'bool' against value 2. Condition is always false. [compareValueOutOfTypeRangeError] gnushogi-1.5pre/gnushogi/eval.c:1470:9: style: Condition '!checked_trapped' is always true [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/eval.c:1464:33: note: Assignment 'checked_trapped=0', assigned value is 0 gnushogi-1.5pre/gnushogi/eval.c:1470:9: note: Condition '!checked_trapped' is always true gnushogi-1.5pre/gnushogi/eval.c:841:12: style: Variable 'rvalue' is reassigned a value before the old one has been used. [redundantAssignment] gnushogi-1.5pre/gnushogi/eval.c:839:12: note: rvalue is assigned gnushogi-1.5pre/gnushogi/eval.c:841:12: note: rvalue is overwritten gnushogi-1.5pre/gnushogi/eval.c:2052:28: style:inconclusive: Function 'ScorePatternDistance' argument 1 names different: declaration 'side' definition 'c1'. [funcArgNamesDifferent] gnushogi-1.5pre/gnushogi/gnushogi.h:1036:41: note: Function 'ScorePatternDistance' argument 1 names different: declaration 'side' definition 'c1'. gnushogi-1.5pre/gnushogi/eval.c:2052:28: note: Function 'ScorePatternDistance' argument 1 names different: declaration 'side' definition 'c1'. gnushogi-1.5pre/gnushogi/eval.c:2747:21: style:inconclusive: Function 'UpdateWeights' argument 1 names different: declaration 'side' definition 'stage'. [funcArgNamesDifferent] gnushogi-1.5pre/gnushogi/gnushogi.h:1038:34: note: Function 'UpdateWeights' argument 1 names different: declaration 'side' definition 'stage'. gnushogi-1.5pre/gnushogi/eval.c:2747:21: note: Function 'UpdateWeights' argument 1 names different: declaration 'side' definition 'stage'. gnushogi-1.5pre/gnushogi/eval.c:1112:23: style: Local variable 'ptyp' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:1097:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:1112:23: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:1464:15: style: Local variable 'checked_trapped' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:1208:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:1464:15: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:2055:18: style: Local variable 'fv1' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:323:21: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:2055:18: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:2551:11: style: Local variable 'c1' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:321:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:2551:11: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:2588:38: style: Local variable 'c1' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:321:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:2588:38: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:2588:42: style: Local variable 'c2' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/eval.c:321:18: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:2588:42: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:2818:11: style: Local variable 'stage' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/gnushogi.h:746:14: note: Shadowed declaration gnushogi-1.5pre/gnushogi/eval.c:2818:11: note: Shadow variable gnushogi-1.5pre/gnushogi/eval.c:414:18: style: Variable 'PL' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/eval.c:825:21: style: Variable 'ppos' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/eval.c:825:28: style: Variable 'pdir' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/eval.c:834:18: style: Variable 'Kd' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/eval.c:2055:18: style: Variable 'fv1' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/eval.c:555:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:565:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:573:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:581:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:591:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:870:17: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:873:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:878:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:912:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:916:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:926:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:933:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:947:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:951:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:960:38: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:987:34: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:995:34: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1006:42: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1010:42: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1025:42: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1030:42: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1153:14: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1184:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1199:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1201:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1390:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1401:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1409:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1415:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1443:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1447:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1474:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1478:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1484:18: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1507:18: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1525:30: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1555:18: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1568:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1603:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1612:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1616:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1666:16: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1670:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1674:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1684:16: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1690:30: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1692:30: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1696:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:1702:24: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2065:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2076:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2217:27: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2311:35: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2325:35: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2330:35: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2339:35: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2643:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2687:22: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2692:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/eval.c:2698:26: style: Variable 'ds' is assigned a value that is never used. [unreadVariable] gnushogi-1.5pre/gnushogi/commondsp.c:173:37: style: Condition 't!=0' is always false [knownConditionTrueFalse] gnushogi-1.5pre/gnushogi/commondsp.c:173:25: note: Assuming that condition 'f!=0' is not redundant gnushogi-1.5pre/gnushogi/commondsp.c:173:12: note: Assuming that condition 'f==t' is not redundant gnushogi-1.5pre/gnushogi/commondsp.c:173:37: note: Condition 't!=0' is always false gnushogi-1.5pre/gnushogi/commondsp.c:1603:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gnushogi-1.5pre/gnushogi/commondsp.c:602:17: style: Local variable 'side' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/commondsp.c:452:11: note: Shadowed declaration gnushogi-1.5pre/gnushogi/commondsp.c:602:17: note: Shadow variable gnushogi-1.5pre/gnushogi/commondsp.c:627:23: style: Local variable 'i' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/commondsp.c:450:12: note: Shadowed declaration gnushogi-1.5pre/gnushogi/commondsp.c:627:23: note: Shadow variable gnushogi-1.5pre/gnushogi/commondsp.c:1926:39: style: Local variable 'PrVar' shadows outer variable [shadowVariable] gnushogi-1.5pre/gnushogi/gnushogi.h:768:23: note: Shadowed declaration gnushogi-1.5pre/gnushogi/commondsp.c:1926:39: note: Shadow variable gnushogi-1.5pre/gnushogi/commondsp.c:245:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:449:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:676:10: style: Variable 'empty' can be declared as const array [constVariable] gnushogi-1.5pre/gnushogi/commondsp.c:690:15: style: Variable 'b' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:690:19: style: Variable 'w' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:776:30: style: Variable 'g' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:824:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:1055:30: style: Variable 'g' can be declared as pointer to const [constVariablePointer] gnushogi-1.5pre/gnushogi/commondsp.c:1499:20: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] gnushogi-1.5pre/gnushogi/commondsp.c:1376:9: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] gnushogi-1.5pre/gnushogi/commondsp.c:604:18: style: Variable 'side' is assigned a value that is never used. [unreadVariable] diff: head gnushogi-1.5pre/gnushogi/rawdsp.c:243:6: error: #error "Need setvbuf() or setlinebuf() to compile gnushogi!" [preprocessorErrorDirective] DONE