From: H.G. Muller Date: Sat, 6 Nov 2010 13:52:12 +0000 (+0100) Subject: Fix some warnings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=aa6204ea774b5fe0c8a9c095e7be97f704fea563;p=xboard.git Fix some warnings Unused variables were removed from parser.l --- diff --git a/parser.l b/parser.l index 4ac67dc..96a9e8b 100644 --- a/parser.l +++ b/parser.l @@ -294,7 +294,7 @@ extern void CopyBoard P((Board to, Board from)); } else { c = currentMoveString[4] = ToLower(yytext[yyleng-1]); } - if(c == '+' && gameInfo.variant != VariantShogi) c = currentMoveString[4] = NULLCHAR; // + means check outside Shogi + if(c == '+' && gameInfo.variant != VariantShogi) currentMoveString[4] = NULLCHAR; // + means check outside Shogi currentMoveString[5] = NULLCHAR; } @@ -384,7 +384,7 @@ extern void CopyBoard P((Board to, Board from)); * Pawn move, possibly with promotion */ DisambiguateClosure cl; - int skip = 0; char c; + int skip = 0; if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */ @@ -425,7 +425,7 @@ extern void CopyBoard P((Board to, Board from)); * Pawn capture, possibly with promotion, possibly ambiguous */ DisambiguateClosure cl; - int skip1 = 0, skip2 = 0; char c; + int skip1 = 0, skip2 = 0; if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */