mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-18 16:16:23 +08:00
Fix some Intel compilers warnings
Also a compile fix due to Makefile missing new application.cpp file. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
EXE = stockfish
|
EXE = stockfish
|
||||||
|
|
||||||
OBJS = bitboard.o pawns.o material.o endgame.o evaluate.o main.o \
|
OBJS = application.o bitboard.o pawns.o material.o endgame.o evaluate.o main.o \
|
||||||
misc.o move.o movegen.o history.o movepick.o search.o piece.o \
|
misc.o move.o movegen.o history.o movepick.o search.o piece.o \
|
||||||
position.o direction.o tt.o value.o uci.o ucioption.o \
|
position.o direction.o tt.o value.o uci.o ucioption.o \
|
||||||
mersenne.o book.o bitbase.o san.o benchmark.o
|
mersenne.o book.o bitbase.o san.o benchmark.o
|
||||||
|
|||||||
@@ -571,10 +571,9 @@ namespace {
|
|||||||
ei.egMobility += Sign[us] * EgBonus[Piece][mob];
|
ei.egMobility += Sign[us] * EgBonus[Piece][mob];
|
||||||
|
|
||||||
// Bishop and Knight outposts
|
// Bishop and Knight outposts
|
||||||
if ( (Piece != BISHOP && Piece != KNIGHT) // compile time condition
|
if ( (Piece == BISHOP || Piece == KNIGHT) // compile time condition
|
||||||
|| !p.square_is_weak(s, them))
|
&& p.square_is_weak(s, them))
|
||||||
return mob;
|
{
|
||||||
|
|
||||||
// Initial bonus based on square
|
// Initial bonus based on square
|
||||||
Value v, bonus;
|
Value v, bonus;
|
||||||
v = bonus = OutpostBonus[Piece][relative_square(us, s)];
|
v = bonus = OutpostBonus[Piece][relative_square(us, s)];
|
||||||
@@ -590,6 +589,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
ei.mgValue += Sign[us] * bonus;
|
ei.mgValue += Sign[us] * bonus;
|
||||||
ei.egValue += Sign[us] * bonus;
|
ei.egValue += Sign[us] * bonus;
|
||||||
|
}
|
||||||
return mob;
|
return mob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -835,9 +835,8 @@ namespace {
|
|||||||
|
|
||||||
// Direct checks
|
// Direct checks
|
||||||
b = target & ~dc;
|
b = target & ~dc;
|
||||||
if (Piece == KING || !b)
|
if (Piece != KING || b)
|
||||||
return mlist;
|
{
|
||||||
|
|
||||||
Bitboard checkSqs = pos.piece_attacks<Piece>(ksq) & pos.empty_squares();
|
Bitboard checkSqs = pos.piece_attacks<Piece>(ksq) & pos.empty_squares();
|
||||||
if (!checkSqs)
|
if (!checkSqs)
|
||||||
return mlist;
|
return mlist;
|
||||||
@@ -853,6 +852,7 @@ namespace {
|
|||||||
Bitboard bb = pos.piece_attacks<Piece>(from) & checkSqs;
|
Bitboard bb = pos.piece_attacks<Piece>(from) & checkSqs;
|
||||||
SERIALIZE_MOVES(bb);
|
SERIALIZE_MOVES(bb);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return mlist;
|
return mlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
struct EvalInfo;
|
struct EvalInfo;
|
||||||
struct SearchStack;
|
struct SearchStack;
|
||||||
|
|
||||||
|
extern SearchStack EmptySearchStack;
|
||||||
|
|
||||||
/// MovePicker is a class which is used to pick one legal move at a time from
|
/// MovePicker is a class which is used to pick one legal move at a time from
|
||||||
/// the current position. It is initialized with a Position object and a few
|
/// the current position. It is initialized with a Position object and a few
|
||||||
/// moves we have reason to believe are good. The most important method is
|
/// moves we have reason to believe are good. The most important method is
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
//// Variables
|
//// Variables
|
||||||
////
|
////
|
||||||
|
|
||||||
extern SearchStack EmptySearchStack;
|
|
||||||
|
|
||||||
int Position::castleRightsMask[64];
|
int Position::castleRightsMask[64];
|
||||||
|
|
||||||
Key Position::zobrist[2][8][64];
|
Key Position::zobrist[2][8][64];
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include "movepick.h"
|
#include "movepick.h"
|
||||||
#include "san.h"
|
#include "san.h"
|
||||||
|
|
||||||
extern SearchStack EmptySearchStack;
|
|
||||||
|
|
||||||
////
|
////
|
||||||
//// Local definitions
|
//// Local definitions
|
||||||
|
|||||||
Reference in New Issue
Block a user