mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Fix a warning with debug=no
Warning in TB code due to unused variable. Verified same bench with TB code enabled. No functional change.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user