From: H.G. Muller Date: Fri, 10 Feb 2012 21:39:08 +0000 (+0100) Subject: Fix warning X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=2a21a33578d61a339fc7b8769f011bc940b3cc04;hp=5b1f4e2d668d8cc065ce0f95f9bbcf09d9497036;p=xboard.git Fix warning Deleting debug printing had made a variable unused. --- diff --git a/moves.c b/moves.c index 0de99f7..12e2057 100644 --- a/moves.c +++ b/moves.c @@ -1097,7 +1097,7 @@ LegalityTestCallback (Board board, int flags, ChessMove kind, int rf, int ff, in ChessMove LegalityTest (Board board, int flags, int rf, int ff, int rt, int ft, int promoChar) { - LegalityTestClosure cl; ChessSquare piece, filterPiece, *castlingRights = board[CASTLING]; + LegalityTestClosure cl; ChessSquare piece, filterPiece; if(quickFlag) flags = flags & ~1 | quickFlag & 1; // [HGM] speed: in quick mode quickFlag specifies side-to-move. if(rf == DROP_RANK) return LegalDrop(board, flags, ff, rt, ft);