From 0b944c718631cdbdd8fae46eaf96a099f48ad5a4 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 27 Aug 2016 12:16:13 +0200 Subject: [PATCH] Silence some warnings with MSVC 2013 No functional change. --- src/movegen.cpp | 2 ++ src/tt.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/movegen.cpp b/src/movegen.cpp index 3a69f8ab..322d2a65 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -82,6 +82,8 @@ namespace { // that's not already included in the queen promotion. if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq)) *moveList++ = make(to - Delta, to, KNIGHT); + else + (void)ksq; // Silence a warning under MSVC return moveList; } diff --git a/src/tt.h b/src/tt.h index 6bc83471..677f38ed 100644 --- a/src/tt.h +++ b/src/tt.h @@ -39,7 +39,7 @@ struct TTEntry { Move move() const { return (Move )move16; } Value value() const { return (Value)value16; } Value eval() const { return (Value)eval16; } - Depth depth() const { return (Depth)(depth8 * ONE_PLY); } + Depth depth() const { return (Depth)(depth8 * int(ONE_PLY)); } Bound bound() const { return (Bound)(genBound8 & 0x3); } void save(Key k, Value v, Bound b, Depth d, Move m, Value ev, uint8_t g) { -- 2.39.2