From e4659693de364cf20466367f508355799691799e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 6 Nov 2016 09:43:40 +0100 Subject: [PATCH 1/1] Fix a warning with debug=no Warning in TB code due to unused variable. Verified same bench with TB code enabled. No functional change. --- src/syzygy/tbprobe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 46c513d2..a1e73c81 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -1061,10 +1061,10 @@ void do_init(Entry& e, T& p, uint8_t* data) { enum { Split = 1, HasPawns = 2 }; - uint8_t flags = *data++; + assert(e.hasPawns == !!(*data & HasPawns)); + assert((e.key != e.key2) == !!(*data & Split)); - assert(e.hasPawns == !!(flags & HasPawns)); - assert((e.key != e.key2) == !!(flags & Split)); + data++; // First byte stores flags const int Sides = IsWDL && (e.key != e.key2) ? 2 : 1; const File MaxFile = e.hasPawns ? FILE_D : FILE_A; -- 2.39.2