From aa6204ea774b5fe0c8a9c095e7be97f704fea563 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Nov 2010 14:52:12 +0100 Subject: [PATCH] Fix some warnings Unused variables were removed from parser.l --- parser.l | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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 */ -- 1.7.0.4