From: Marco Costalba Date: Sat, 6 Dec 2008 11:01:16 +0000 (+0100) Subject: Fix two gcc warnings in san.cpp X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6f946f823c72bcb4a80de6e50cb5111736ffa885 Fix two gcc warnings in san.cpp One good, the other silly. Signed-off-by: Marco Costalba --- diff --git a/src/san.cpp b/src/san.cpp index a0ff4cdd..222a1043 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -223,7 +223,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) { toRank = rank_from_char(c); state = (i < movestr.length() - 1) ? PROMOTION_OR_CHECK : END; } - else if (state == TO_FILE && fromRank == FILE_NONE) + else if (state == TO_FILE && fromRank == RANK_NONE) { // It's a disambiguation rank instead of a file fromRank = rank_from_char(c); @@ -263,7 +263,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) { return MOVE_NONE; // Look for a matching move - Move m, move; + Move m, move = MOVE_NONE; to = make_square(toFile, toRank); int matches = 0;