mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Position: fix a couple of Intel compiler warnings
Plus usual trailing whitespace. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
8a85007023
commit
a5c1b3e8f6
2 changed files with 31 additions and 35 deletions
|
@ -172,8 +172,6 @@ Move MovePicker::get_next_move() {
|
|||
return MOVE_NONE;
|
||||
}
|
||||
}
|
||||
assert(false);
|
||||
return MOVE_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -410,7 +410,6 @@ bool Position::piece_attacks_square(Square f, Square t) const {
|
|||
case WR: case BR: return piece_attacks_square<ROOK>(f, t);
|
||||
case WQ: case BQ: return piece_attacks_square<QUEEN>(f, t);
|
||||
case WK: case BK: return piece_attacks_square<KING>(f, t);
|
||||
default: return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -1337,7 +1336,6 @@ void Position::undo_castle_move(Move m) {
|
|||
// Position::undo_move. In particular, the side to move has been switched,
|
||||
// so the code below is correct.
|
||||
Color us = side_to_move();
|
||||
Color them = opposite_color(us);
|
||||
|
||||
// Find source squares for king and rook
|
||||
Square kfrom = move_from(m);
|
||||
|
|
Loading…
Add table
Reference in a new issue