From: Marco Costalba Date: Sat, 19 Aug 2017 12:32:31 +0000 (+0200) Subject: Fix some Clang warnings X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7aa7dfd4dfc275e3b932337ad094e7efbaa90987;hp=fa5b0936eef8e647df99f424e454510839d0a344 Fix some Clang warnings Found by Clang in extra verbose mode :-) No functional change. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d47c0955..873a339d 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -78,7 +78,7 @@ namespace { public: Evaluation() = delete; - Evaluation(const Position& p) : pos(p) {}; + Evaluation(const Position& p) : pos(p) {} Evaluation& operator=(const Evaluation&) = delete; Value value(); diff --git a/src/search.cpp b/src/search.cpp index 6bd84226..50a84d27 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -134,8 +134,8 @@ namespace { } } - int stableCnt; Key expectedPosKey; + int stableCnt; Move pv[3]; }; diff --git a/src/types.h b/src/types.h index 3260b903..acca8743 100644 --- a/src/types.h +++ b/src/types.h @@ -128,7 +128,7 @@ enum MoveType { }; enum Color { - WHITE, BLACK, NO_COLOR, COLOR_NB = 2 + WHITE, BLACK, COLOR_NB = 2 }; enum CastlingSide {