From: H.G. Muller Date: Sun, 2 Feb 2014 15:41:13 +0000 (+0100) Subject: Fix warnings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f1af1dfc236cea66f9a27d2a2e4b40dbecbfad71;p=xboard.git Fix warnings Some unread variables are commented out, rather than removed, because they can be useful for future development. --- 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.