1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +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:
Marco Costalba 2016-11-06 09:43:40 +01:00
parent 52cb348023
commit e4659693de

View file

@ -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;