mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix icc's "unreachable code" warning
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
c081a81daf
commit
0cfb30e5be
1 changed files with 8 additions and 6 deletions
|
@ -733,7 +733,14 @@ namespace {
|
|||
if (PvNode && thread.maxPly < ss->ply)
|
||||
thread.maxPly = ss->ply;
|
||||
|
||||
if (SpNode)
|
||||
// Step 1. Initialize node and poll. Polling can abort search
|
||||
if (!SpNode)
|
||||
{
|
||||
ss->currentMove = ss->bestMove = threatMove = (ss+1)->excludedMove = MOVE_NONE;
|
||||
(ss+1)->skipNullMove = false; (ss+1)->reduction = DEPTH_ZERO;
|
||||
(ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
|
||||
}
|
||||
else
|
||||
{
|
||||
sp = ss->sp;
|
||||
tte = NULL;
|
||||
|
@ -742,11 +749,6 @@ namespace {
|
|||
goto split_point_start;
|
||||
}
|
||||
|
||||
// Step 1. Initialize node and poll. Polling can abort search
|
||||
ss->currentMove = ss->bestMove = threatMove = (ss+1)->excludedMove = MOVE_NONE;
|
||||
(ss+1)->skipNullMove = false; (ss+1)->reduction = DEPTH_ZERO;
|
||||
(ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
|
||||
|
||||
if (pos.thread() == 0 && ++NodesSincePoll > NodesBetweenPolls)
|
||||
{
|
||||
NodesSincePoll = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue