mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Silence some warnings with MSVC 2013
No functional change.
This commit is contained in:
@@ -82,6 +82,8 @@ namespace {
|
|||||||
// that's not already included in the queen promotion.
|
// that's not already included in the queen promotion.
|
||||||
if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq))
|
if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq))
|
||||||
*moveList++ = make<PROMOTION>(to - Delta, to, KNIGHT);
|
*moveList++ = make<PROMOTION>(to - Delta, to, KNIGHT);
|
||||||
|
else
|
||||||
|
(void)ksq; // Silence a warning under MSVC
|
||||||
|
|
||||||
return moveList;
|
return moveList;
|
||||||
}
|
}
|
||||||
|
|||||||
2
src/tt.h
2
src/tt.h
@@ -39,7 +39,7 @@ struct TTEntry {
|
|||||||
Move move() const { return (Move )move16; }
|
Move move() const { return (Move )move16; }
|
||||||
Value value() const { return (Value)value16; }
|
Value value() const { return (Value)value16; }
|
||||||
Value eval() const { return (Value)eval16; }
|
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); }
|
Bound bound() const { return (Bound)(genBound8 & 0x3); }
|
||||||
|
|
||||||
void save(Key k, Value v, Bound b, Depth d, Move m, Value ev, uint8_t g) {
|
void save(Key k, Value v, Bound b, Depth d, Move m, Value ev, uint8_t g) {
|
||||||
|
|||||||
Reference in New Issue
Block a user