From 574bbd6685da9dbf266c205ca6db4225f26ea2e2 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 18 Jan 2014 23:26:03 +0100 Subject: [PATCH] Fix warning in CheckTest --- moves.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/moves.c b/moves.c index e20d2e4..856454c 100644 --- a/moves.c +++ b/moves.c @@ -1305,7 +1305,7 @@ CheckTest (Board board, int flags, int rf, int ff, int rt, int ft, int enPassant { CheckTestClosure cl; ChessSquare king = flags & F_WHITE_ON_MOVE ? WhiteKing : BlackKing; - ChessSquare captured = EmptySquare, ep, trampled; + ChessSquare captured = EmptySquare, ep=0, trampled=0; /* Suppress warnings on uninitialized variables */ if(gameInfo.variant == VariantXiangqi) -- 1.7.0.4