mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Fix silly MSVC warning
MSVC raises an "use of partially uninitialized variable" for futilityValue and staticValue but this is not rue becasue when !isCheck variables are never used, anyhow silence the warning. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-2
@@ -1328,11 +1328,11 @@ namespace {
|
|||||||
const TTEntry* tte;
|
const TTEntry* tte;
|
||||||
Move ttMove, move;
|
Move ttMove, move;
|
||||||
Depth ext, newDepth;
|
Depth ext, newDepth;
|
||||||
Value staticValue, nullValue, value, futilityValue, futilityValueScaled;
|
Value bestValue, staticValue, nullValue, value, futilityValue, futilityValueScaled;
|
||||||
bool isCheck, useFutilityPruning, singleEvasion, moveIsCheck, captureOrPromotion, dangerous;
|
bool isCheck, useFutilityPruning, singleEvasion, moveIsCheck, captureOrPromotion, dangerous;
|
||||||
bool mateThreat = false;
|
bool mateThreat = false;
|
||||||
int moveCount = 0;
|
int moveCount = 0;
|
||||||
Value bestValue = -VALUE_INFINITE;
|
futilityValue = staticValue = bestValue = -VALUE_INFINITE;
|
||||||
|
|
||||||
if (depth < OnePly)
|
if (depth < OnePly)
|
||||||
return qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
return qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
||||||
|
|||||||
Reference in New Issue
Block a user