From: Marco Costalba Date: Mon, 23 May 2011 08:18:26 +0000 (+0200) Subject: Fix a shadowed variable warning under gcc X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=07832119507b1bb6e39778d731807fd69eb5d54f;p=fairystockfish.git Fix a shadowed variable warning under gcc No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/position.cpp b/src/position.cpp index 52aa93e..3cc3bfe 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -591,9 +591,7 @@ bool Position::pl_move_is_legal(Move m, Bitboard pinned) const { // after the move is made if (move_is_ep(m)) { - Color us = side_to_move(); Color them = opposite_color(us); - Square from = move_from(m); Square to = move_to(m); Square capsq = make_square(square_file(to), square_rank(from)); Square ksq = king_square(us);