2024-03-25 17:04 ftp://ftp.de.debian.org/debian/pool/main/s/shogivar/shogivar_1.55b.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.5.0-25-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.13.0 head-info: fd7bd50 (2024-03-25 07:57:46 +0100) count: 320 263 elapsed-time: 104.1 194.9 head-timing-info: old-timing-info: head results: shogivar-C-port-1.55b/backend.c:3617:47: error: Buffer is accessed out of bounds: Board.Caption [bufferAccessOutOfBounds] shogivar-C-port-1.55b/backend.c:3628:31: error: Buffer is accessed out of bounds: Board.Caption [bufferAccessOutOfBounds] shogivar-C-port-1.55b/backend.c:2595:22: style: The if condition is the same as the previous if condition [duplicateCondition] shogivar-C-port-1.55b/backend.c:2594:22: note: First condition shogivar-C-port-1.55b/backend.c:2595:22: note: Second condition shogivar-C-port-1.55b/backend.c:351:15: style: Condition 'CapRef[X]==0-CaptPiece' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:377:19: style: Condition 'CapRef[X]==0-Selection' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:404:15: style: Condition 'CapRef[X]==0-CaptPiece' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:4164:40: style: Condition 'Found==1' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:4148:23: note: Assignment 'Found=0', assigned value is 0 shogivar-C-port-1.55b/backend.c:4164:40: note: Condition 'Found==1' is always false shogivar-C-port-1.55b/backend.c:4166:39: style: Condition 'Found==1' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:4148:23: note: Assignment 'Found=0', assigned value is 0 shogivar-C-port-1.55b/backend.c:4166:39: note: Condition 'Found==1' is always false shogivar-C-port-1.55b/backend.c:5181:35: style: Condition 'Squares[NewFile][NewRank]!=0' is always true [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:5525:40: style: Condition 'TurnCount>1' is always false [knownConditionTrueFalse] shogivar-C-port-1.55b/backend.c:5525:22: note: Assuming that condition 'TurnCount>0' is not redundant shogivar-C-port-1.55b/backend.c:5525:40: note: Condition 'TurnCount>1' is always false shogivar-C-port-1.55b/backend.c:3944:3: portability: %s in format string (no. 1) requires 'char *' but the argument type is 'int {aka signed int}'. [invalidPrintfArgType_s] shogivar-C-port-1.55b/backend.c:1311:2: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3082:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3094:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3099:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3102:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3141:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3152:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3154:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:3157:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4877:6: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4884:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4885:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4886:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4897:11: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4935:2: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:4936:2: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] shogivar-C-port-1.55b/backend.c:1514:14: style: Variable 'Evaluate' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:1504:14: note: Evaluate is assigned shogivar-C-port-1.55b/backend.c:1514:14: note: Evaluate is overwritten shogivar-C-port-1.55b/backend.c:2620:41: style: Variable 'Teach' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:2619:41: note: Teach is assigned shogivar-C-port-1.55b/backend.c:2620:41: note: Teach is overwritten shogivar-C-port-1.55b/backend.c:3371:379: style: Variable 'Response' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:3371:246: note: Response is assigned shogivar-C-port-1.55b/backend.c:3371:379: note: Response is overwritten shogivar-C-port-1.55b/backend.c:3372:379: style: Variable 'Response' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:3372:246: note: Response is assigned shogivar-C-port-1.55b/backend.c:3372:379: note: Response is overwritten shogivar-C-port-1.55b/backend.c:3374:300: style: Variable 'Response' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:3374:164: note: Response is assigned shogivar-C-port-1.55b/backend.c:3374:300: note: Response is overwritten shogivar-C-port-1.55b/backend.c:3375:300: style: Variable 'Response' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:3375:164: note: Response is assigned shogivar-C-port-1.55b/backend.c:3375:300: note: Response is overwritten shogivar-C-port-1.55b/backend.c:3915:31: style: Variable 'Teach' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:3914:31: note: Teach is assigned shogivar-C-port-1.55b/backend.c:3915:31: note: Teach is overwritten shogivar-C-port-1.55b/backend.c:5366:19: style: Variable 'Board.ForeColor' is reassigned a value before the old one has been used. [redundantAssignment] shogivar-C-port-1.55b/backend.c:5363:19: note: Board.ForeColor is assigned shogivar-C-port-1.55b/backend.c:5366:19: note: Board.ForeColor is overwritten shogivar-C-port-1.55b/backend.c:3940:7: style: Local variable 'J' shadows outer variable [shadowVariable] shogivar-C-port-1.55b/backend.c:40:104: note: Shadowed declaration shogivar-C-port-1.55b/backend.c:3940:7: note: Shadow variable shogivar-C-port-1.55b/backend.c:4591:9: style: Local variable 'f2' shadows outer variable [shadowVariable] shogivar-C-port-1.55b/backend.c:66:14: note: Shadowed declaration shogivar-C-port-1.55b/backend.c:4591:9: note: Shadow variable shogivar-C-port-1.55b/backend.c:3941:23: style: Variable 'Spaces' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/backend.c:492:17: style: Variable 'EE' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:492:23: style: Variable 'FF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:492:29: style: Variable 'QQ' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:492:42: style: Variable 'BlackLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:492:55: style: Variable 'WhiteLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:535:60: style: Variable 'HighBlackLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:536:60: style: Variable 'HighWhiteLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:9: style: Variable 'BB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:15: style: Variable 'CC' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:21: style: Variable 'SS' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:27: style: Variable 'TT' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:40: style: Variable 'CheckDrop' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:55: style: Variable 'OldCompMove' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:71: style: Variable 'OldInfluence' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:86: style: Variable 'OldEvaluate' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:98: style: Variable 'TestFile' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:589:110: style: Variable 'TestRank' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:666:13: style: Variable 'B' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:740:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:770:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:789:17: style: Variable 'GGG' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:839:17: style: Variable 'GGG' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:869:8: style: Variable 'A' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:869:13: style: Variable 'B' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:901:15: style: Variable 'KK' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:901:21: style: Variable 'MM' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:901:27: style: Variable 'NN' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:941:13: style: Variable 'B' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:13: style: Variable 'B' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:19: style: Variable 'BB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:31: style: Variable 'VX' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:37: style: Variable 'TU' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:43: style: Variable 'AB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:49: style: Variable 'CD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1050:65: style: Variable 'OldInfluence' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1190:9: style: Variable 'SS' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1190:15: style: Variable 'TT' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1190:28: style: Variable 'MateCheck' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1489:9: style: Variable 'DD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1489:15: style: Variable 'EE' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1489:21: style: Variable 'JJ' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1489:27: style: Variable 'KK' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1489:33: style: Variable 'PP' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:9: style: Variable 'BB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:15: style: Variable 'DD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:21: style: Variable 'EE' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:27: style: Variable 'FF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:33: style: Variable 'JJ' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:39: style: Variable 'KK' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:45: style: Variable 'PP' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:51: style: Variable 'QQ' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:58: style: Variable 'JJJ' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:65: style: Variable 'KKK' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:78: style: Variable 'BlackLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1542:91: style: Variable 'WhiteLoss' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1800:14: style: Variable 'AB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1800:20: style: Variable 'CD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1837:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1837:17: style: Variable 'Strip' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:1837:28: style: Variable 'NoStrip' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2061:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2061:19: style: Variable 'EF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2113:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2213:15: style: Variable 'CD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2231:15: style: Variable 'CD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2242:11: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2249:15: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2297:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2297:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2314:11: style: Variable 'Found' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2466:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2466:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2491:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2523:10: style: Variable 'PPP' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2633:14: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2744:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2744:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2758:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2758:18: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2843:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2914:8: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2914:13: style: Variable 'Y' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2952:8: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2970:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2996:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2996:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:2996:20: style: Variable 'MMM' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3072:15: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3130:15: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3187:10: style: Variable 'DDD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3244:10: style: Variable 'EFF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3282:17: style: Variable 'CDD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3341:7: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3341:13: style: Variable 'EF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3452:14: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3469:15: style: Variable 'GG' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3519:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3552:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3625:18: style: Variable 'OrigSeeMove' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3742:9: style: Variable 'SS' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3742:15: style: Variable 'TT' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3779:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3779:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3803:8: style: Variable 'Found' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3825:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3825:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3930:9: style: Variable 'Found' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:3932:43: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4148:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4148:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4167:10: style: Variable 'Found' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4210:9: style: Variable 'XX' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4210:15: style: Variable 'YY' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4251:8: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4251:20: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4352:8: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4352:20: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4437:8: style: Variable 'W' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4462:15: style: Variable 'NN' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4473:10: style: Variable 'ABC' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4473:17: style: Variable 'DEF' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4524:15: style: Variable 'KK' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4524:21: style: Variable 'LL' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4589:8: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4589:18: style: Variable 'Z' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4810:15: style: Variable 'HH' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4848:9: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4848:14: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4848:19: style: Variable 'W' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4848:24: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:4848:29: style: Variable 'Y' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5208:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5208:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5278:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5278:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5296:9: style: Variable 'Found' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5359:8: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5359:13: style: Variable 'Y' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5359:19: style: Variable 'GG' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5359:25: style: Variable 'HH' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5459:8: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5459:20: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5536:8: style: Variable 'V' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5536:20: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5653:8: style: Variable 'X' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5707:9: style: Variable 'AB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5707:15: style: Variable 'CD' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5734:9: style: Variable 'BB' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5734:15: style: Variable 'VX' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5734:27: style: Variable 'TU' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5801:15: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5884:12: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5893:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5901:16: style: Variable 'Response' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5912:8: style: Variable 'K' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5912:13: style: Variable 'L' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5912:25: style: Variable 'Location' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5912:39: style: Variable 'DoubleProm' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/backend.c:5945:20: style: Variable 'SpecPowerCHR' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/dialogs.c:270:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:412:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:458:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:470:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:518:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:696:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:703:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:812:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:1150:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/dialogs.c:781:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] shogivar-C-port-1.55b/dialogs.c:755:29: style:inconclusive: Boolean expression 'off<0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] shogivar-C-port-1.55b/dialogs.c:1026:5: warning:inconclusive: The buffer 'lastMsg' may not be null-terminated after the call to strncpy(). [terminateStrncpy] shogivar-C-port-1.55b/dialogs.c:996:46: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] shogivar-C-port-1.55b/dialogs.c:755:29: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] shogivar-C-port-1.55b/dialogs.c:679:17: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] shogivar-C-port-1.55b/dialogs.c:679:6: note: outer condition: !choice shogivar-C-port-1.55b/dialogs.c:679:17: note: opposite inner condition: choice shogivar-C-port-1.55b/dialogs.c:199:24: style: The statement 'if (opts[i].value!=j) opts[i].value=j' is logically equivalent to 'opts[i].value=j'. [duplicateConditionalAssign] shogivar-C-port-1.55b/dialogs.c:200:18: note: Assignment 'opts[i].value=j' shogivar-C-port-1.55b/dialogs.c:199:24: note: Condition 'opts[i].value!=j' is redundant shogivar-C-port-1.55b/dialogs.c:911:11: style: Condition 'j<0' is always true [knownConditionTrueFalse] shogivar-C-port-1.55b/dialogs.c:909:5: note: Assuming that condition 'j' is not redundant shogivar-C-port-1.55b/dialogs.c:911:11: note: Condition 'j<0' is always true shogivar-C-port-1.55b/dialogs.c:162:25: style:inconclusive: Function 'GenericReadout' argument 1 names different: declaration 'currentOption' definition 'opts'. [funcArgNamesDifferent] shogivar-C-port-1.55b/dialogs.h:135:28: note: Function 'GenericReadout' argument 1 names different: declaration 'currentOption' definition 'opts'. shogivar-C-port-1.55b/dialogs.c:162:25: note: Function 'GenericReadout' argument 1 names different: declaration 'currentOption' definition 'opts'. shogivar-C-port-1.55b/dialogs.c:300:18: style:inconclusive: Function 'TagsPopUp' argument 1 names different: declaration 'text' definition 'tags'. [funcArgNamesDifferent] shogivar-C-port-1.55b/frontend.h:35:22: note: Function 'TagsPopUp' argument 1 names different: declaration 'text' definition 'tags'. shogivar-C-port-1.55b/dialogs.c:300:18: note: Function 'TagsPopUp' argument 1 names different: declaration 'text' definition 'tags'. shogivar-C-port-1.55b/dialogs.c:300:30: style:inconclusive: Function 'TagsPopUp' argument 2 names different: declaration 'title' definition 'msg'. [funcArgNamesDifferent] shogivar-C-port-1.55b/frontend.h:35:34: note: Function 'TagsPopUp' argument 2 names different: declaration 'title' definition 'msg'. shogivar-C-port-1.55b/dialogs.c:300:30: note: Function 'TagsPopUp' argument 2 names different: declaration 'title' definition 'msg'. shogivar-C-port-1.55b/dialogs.c:359:32: style:inconclusive: Function 'ErrorPopUp' argument 2 names different: declaration 'text' definition 'label'. [funcArgNamesDifferent] shogivar-C-port-1.55b/menus.h:77:36: note: Function 'ErrorPopUp' argument 2 names different: declaration 'text' definition 'label'. shogivar-C-port-1.55b/dialogs.c:359:32: note: Function 'ErrorPopUp' argument 2 names different: declaration 'text' definition 'label'. shogivar-C-port-1.55b/dialogs.c:1100:17: style:inconclusive: Function 'MoveObject' argument 1 names different: declaration 'redraw' definition 'draw'. [funcArgNamesDifferent] shogivar-C-port-1.55b/frontend.h:27:21: note: Function 'MoveObject' argument 1 names different: declaration 'redraw' definition 'draw'. shogivar-C-port-1.55b/dialogs.c:1100:17: note: Function 'MoveObject' argument 1 names different: declaration 'redraw' definition 'draw'. shogivar-C-port-1.55b/dialogs.c:1100:31: style:inconclusive: Function 'MoveObject' argument 2 names different: declaration 'piece' definition 'obj'. [funcArgNamesDifferent] shogivar-C-port-1.55b/frontend.h:27:37: note: Function 'MoveObject' argument 2 names different: declaration 'piece' definition 'obj'. shogivar-C-port-1.55b/dialogs.c:1100:31: note: Function 'MoveObject' argument 2 names different: declaration 'piece' definition 'obj'. shogivar-C-port-1.55b/dialogs.c:746:35: style: Local variable 'Pixels' shadows outer variable [shadowVariable] shogivar-C-port-1.55b/backend.h:214:12: note: Shadowed declaration shogivar-C-port-1.55b/dialogs.c:746:35: note: Shadow variable shogivar-C-port-1.55b/dialogs.c:279:31: style: Parameter 'opt' can be declared as pointer to const. However it seems that 'TagsClick' is a callback function, if 'opt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/dialogs.c:258:88: note: You might need to cast the function pointer here shogivar-C-port-1.55b/dialogs.c:279:31: note: Parameter 'opt' can be declared as pointer to const shogivar-C-port-1.55b/dialogs.c:279:63: style: Parameter 'val' can be declared as pointer to const. However it seems that 'TagsClick' is a callback function, if 'val' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/dialogs.c:258:88: note: You might need to cast the function pointer here shogivar-C-port-1.55b/dialogs.c:279:63: note: Parameter 'val' can be declared as pointer to const shogivar-C-port-1.55b/dialogs.c:887:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/dialogs.c:894:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/dialogs.c:1007:23: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/dialogs.c:1063:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/dialogs.c:781:4: style: Variable 'n' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/dialogs.c:947:13: style: Variable 'sizing' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/draw.c:116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_ANTIALIAS_NONE [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/draw.c:280:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/draw.c:294:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/draw.c:128:3: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] shogivar-C-port-1.55b/draw.c:112:23: style:inconclusive: Function 'ExposeRedraw' argument 1 names different: declaration 'opt' definition 'graph'. [funcArgNamesDifferent] shogivar-C-port-1.55b/dialogs.h:175:27: note: Function 'ExposeRedraw' argument 1 names different: declaration 'opt' definition 'graph'. shogivar-C-port-1.55b/draw.c:112:23: note: Function 'ExposeRedraw' argument 1 names different: declaration 'opt' definition 'graph'. shogivar-C-port-1.55b/draw.c:125:14: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/draw.c:285:19: style: Parameter 'game' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/draw.c:288:25: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/draw.c:334:60: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/draw.c:287:15: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/gtk/gui.c:268:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RootWindow [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:298:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shellUp [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:317:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RootWindow [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:327:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_WHITE [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:339:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DummyDlg [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:472:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gameCopyFilename [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:503:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lineGap [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:614:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable False [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:796:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_PIECE [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:805:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_PIECE [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:846:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:856:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gameCopyFilename [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:921:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:955:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable False [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:966:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable True [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:1096:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BoardDlg [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/gui.c:830:9: error: Resource leak: f [resourceLeak] shogivar-C-port-1.55b/gtk/gui.c:309:22: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:309:30: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:400:30: style: Parameter 'tm2' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:400:45: style: Parameter 'tm1' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:411:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/gui.c:597:17: style: Parameter 'window' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:597:17: note: Parameter 'window' can be declared as pointer to const shogivar-C-port-1.55b/gtk/gui.c:598:20: style: Parameter 'eventkey' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'eventkey' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:598:20: note: Parameter 'eventkey' can be declared as pointer to const shogivar-C-port-1.55b/gtk/gui.c:599:15: style: Parameter 'data' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:599:15: note: Parameter 'data' can be declared as pointer to const shogivar-C-port-1.55b/gtk/gui.c:709:26: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:814:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:874:11: style: Variable 'sign' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/gui.c:1094:49: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/gui.c:1099:11: style: Variable 'textRep' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/xoptions.c:144:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:189:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Spin [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:247:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Button [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:362:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_FLEUR [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:396:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable values [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable values [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:447:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:523:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:582:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:646:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:764:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shellUp [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:806:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FatalDlg [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:848:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:907:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:962:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_EXPOSE [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:987:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1004:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIZ [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1062:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1140:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Break [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1148:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAME_ROW [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1155:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_EXPAND [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1188:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIZ [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xoptions.c:1220:8: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1253:22: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1254:15: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1269:15: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1271:15: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1283:24: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:1572:41: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] shogivar-C-port-1.55b/gtk/xoptions.c:455:37: style: Redundant assignment of 'msg' to itself. [selfAssignment] shogivar-C-port-1.55b/gtk/xoptions.c:905:12: style: Local variable 'cr' shadows outer variable [shadowVariable] shogivar-C-port-1.55b/gtk/xoptions.c:872:14: note: Shadowed declaration shogivar-C-port-1.55b/gtk/xoptions.c:905:12: note: Shadow variable shogivar-C-port-1.55b/gtk/xoptions.c:1316:93: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] shogivar-C-port-1.55b/gtk/xoptions.c:1324:72: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] shogivar-C-port-1.55b/gtk/xoptions.c:1325:72: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] shogivar-C-port-1.55b/gtk/xoptions.c:187:38: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/xoptions.c:378:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/xoptions.c:511:45: style: Parameter 'event' can be declared as pointer to const. However it seems that 'TypeInProc' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xoptions.c:691:2: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xoptions.c:511:45: note: Parameter 'event' can be declared as pointer to const shogivar-C-port-1.55b/gtk/xoptions.c:517:13: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/xoptions.c:866:13: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/xoptions.c:869:21: style: Variable 'bevent' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/xoptions.c:870:21: style: Variable 'mevent' can be declared as pointer to const [constVariablePointer] shogivar-C-port-1.55b/gtk/xoptions.c:1056:50: style: Parameter 'event' can be declared as pointer to const. However it seems that 'ListCallback' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xoptions.c:1506:21: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xoptions.c:1056:50: note: Parameter 'event' can be declared as pointer to const shogivar-C-port-1.55b/gtk/xoptions.c:1138:21: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/xoptions.c:1146:18: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] shogivar-C-port-1.55b/gtk/xoptions.c:1442:13: portability: '(void*)(intptr_t)i' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] shogivar-C-port-1.55b/gtk/xoptions.c:941:9: style: Variable 'opt' is assigned a value that is never used. [unreadVariable] shogivar-C-port-1.55b/gtk/xtimer.c:207:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Enabled [valueFlowBailoutIncompleteVar] shogivar-C-port-1.55b/gtk/xtimer.c:233:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] shogivar-C-port-1.55b/gtk/xtimer.c:169:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'LoadGameTimerCallback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xtimer.c:180:41: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xtimer.c:169:32: note: Parameter 'data' can be declared as pointer to const shogivar-C-port-1.55b/gtk/xtimer.c:215:29: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ClockTimerCallback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xtimer.c:227:58: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xtimer.c:215:29: note: Parameter 'data' can be declared as pointer to const shogivar-C-port-1.55b/menus.c:500:19: style: Local variable 'mainOptions' shadows outer variable [shadowVariable] shogivar-C-port-1.55b/dialogs.h:129:60: note: Shadowed declaration shogivar-C-port-1.55b/menus.c:500:19: note: Shadow variable diff: head shogivar-C-port-1.55b/dialogs.c:1150:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:279:31: style: Parameter 'opt' can be declared as pointer to const. However it seems that 'TagsClick' is a callback function, if 'opt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/dialogs.c:258:88: note: You might need to cast the function pointer here shogivar-C-port-1.55b/dialogs.c:279:31: note: Parameter 'opt' can be declared as pointer to const head shogivar-C-port-1.55b/dialogs.c:279:63: style: Parameter 'val' can be declared as pointer to const. However it seems that 'TagsClick' is a callback function, if 'val' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/dialogs.c:258:88: note: You might need to cast the function pointer here shogivar-C-port-1.55b/dialogs.c:279:63: note: Parameter 'val' can be declared as pointer to const head shogivar-C-port-1.55b/dialogs.c:412:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:458:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:470:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:518:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:696:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:703:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/dialogs.c:812:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proc [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/draw.c:280:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/draw.c:294:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:1096:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BoardDlg [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:298:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shellUp [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:309:22: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] head shogivar-C-port-1.55b/gtk/gui.c:309:30: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] head shogivar-C-port-1.55b/gtk/gui.c:317:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RootWindow [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:327:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_WHITE [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:339:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DummyDlg [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:472:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gameCopyFilename [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:503:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lineGap [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:597:17: style: Parameter 'window' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:597:17: note: Parameter 'window' can be declared as pointer to const head shogivar-C-port-1.55b/gtk/gui.c:598:20: style: Parameter 'eventkey' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'eventkey' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:598:20: note: Parameter 'eventkey' can be declared as pointer to const head shogivar-C-port-1.55b/gtk/gui.c:599:15: style: Parameter 'data' can be declared as pointer to const. However it seems that 'KeyPressProc' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/gui.c:562:5: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/gui.c:599:15: note: Parameter 'data' can be declared as pointer to const head shogivar-C-port-1.55b/gtk/gui.c:614:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable False [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:709:26: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] head shogivar-C-port-1.55b/gtk/gui.c:796:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_PIECE [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:805:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W_PIECE [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:846:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:856:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gameCopyFilename [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:921:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:955:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable False [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/gui.c:966:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable True [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1004:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIZ [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1062:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1140:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Break [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1148:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAME_ROW [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1155:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_EXPAND [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:1188:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIZ [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:189:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Spin [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:247:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Button [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:362:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_FLEUR [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:378:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] head shogivar-C-port-1.55b/gtk/xoptions.c:396:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable values [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:432:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable values [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:447:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:455:37: style: Redundant assignment of 'msg' to itself. [selfAssignment] 2.13.0 shogivar-C-port-1.55b/gtk/xoptions.c:455:37: warning: Redundant assignment of 'msg' to itself. [selfAssignment] head shogivar-C-port-1.55b/gtk/xoptions.c:523:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:582:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:646:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:764:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shellUp [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:806:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FatalDlg [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:848:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:907:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:962:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_EXPOSE [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xoptions.c:987:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target [valueFlowBailoutIncompleteVar] 2.13.0 shogivar-C-port-1.55b/gtk/xtimer.c:162:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xtimer.c:169:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'LoadGameTimerCallback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xtimer.c:180:41: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xtimer.c:169:32: note: Parameter 'data' can be declared as pointer to const head shogivar-C-port-1.55b/gtk/xtimer.c:207:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Enabled [valueFlowBailoutIncompleteVar] head shogivar-C-port-1.55b/gtk/xtimer.c:215:29: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ClockTimerCallback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] shogivar-C-port-1.55b/gtk/xtimer.c:227:58: note: You might need to cast the function pointer here shogivar-C-port-1.55b/gtk/xtimer.c:215:29: note: Parameter 'data' can be declared as pointer to const DONE