From f1af1dfc236cea66f9a27d2a2e4b40dbecbfad71 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 2 Feb 2014 16:41:13 +0100 Subject: [PATCH] Fix warnings Some unread variables are commented out, rather than removed, because they can be useful for future development. --- backend.c | 4 ++-- gtk/xboard.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend.c b/backend.c index f8c277a..5d31621 100644 --- a/backend.c +++ b/backend.c @@ -9822,11 +9822,11 @@ ApplyMove (int fromX, int fromY, int toX, int toY, int promoChar, Board board) } piece = board[toY][toX] = (ChessSquare) fromX; } else { - ChessSquare victim; +// ChessSquare victim; int i; if( killX >= 0 && killY >= 0 ) // [HGM] lion: Lion trampled over something - victim = board[killY][killX], +// victim = board[killY][killX], board[killY][killX] = EmptySquare, board[EP_STATUS] = EP_CAPTURE; diff --git a/gtk/xboard.c b/gtk/xboard.c index 4c66bdc..8017262 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -752,7 +752,7 @@ int main (int argc, char **argv) { int i, clockFontPxlSize, coordFontPxlSize, fontPxlSize; - int boardWidth, boardHeight, w, h; + int boardWidth, w, h; //, boardHeight; char *p; int forceMono = False; @@ -967,7 +967,7 @@ main (int argc, char **argv) /* [HR] height treated separately (hacked) */ boardWidth = lineGap + BOARD_WIDTH * (squareSize + lineGap); - boardHeight = lineGap + BOARD_HEIGHT * (squareSize + lineGap); +// boardHeight = lineGap + BOARD_HEIGHT * (squareSize + lineGap); /* * Determine what fonts to use. -- 1.7.0.4