mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Fix a silly warning on Intel compiler
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -626,9 +626,8 @@ namespace {
|
||||
evaluate_trapped_bishop_a1h1(pos, s, us, ei);
|
||||
}
|
||||
|
||||
if (Piece != ROOK && Piece != QUEEN)
|
||||
continue;
|
||||
|
||||
if (Piece == ROOK || Piece == QUEEN)
|
||||
{
|
||||
// Queen or rook on 7th rank
|
||||
them = opposite_color(us);
|
||||
|
||||
@@ -638,11 +637,11 @@ namespace {
|
||||
ei.mgValue += Sign[us] * (Piece == ROOK ? MidgameRookOn7thBonus : MidgameQueenOn7thBonus);
|
||||
ei.egValue += Sign[us] * (Piece == ROOK ? EndgameRookOn7thBonus : EndgameQueenOn7thBonus);
|
||||
}
|
||||
}
|
||||
|
||||
// Special extra evaluation for rooks
|
||||
if (Piece != ROOK)
|
||||
continue;
|
||||
|
||||
if (Piece == ROOK)
|
||||
{
|
||||
// Open and half-open files
|
||||
f = square_file(s);
|
||||
if (ei.pi->file_is_half_open(us, f))
|
||||
@@ -686,6 +685,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline Bitboard shiftRowsDown(const Bitboard& b, int num) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user