summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d664773)
Plus some other icc warnings popped up with new and strictier
compile options.
No functional and speed change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
endif
### 3.2 General compiler settings
endif
### 3.2 General compiler settings
-CXXFLAGS = -g -Wall -Wcast-qual -ansi -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
+CXXFLAGS = -g -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
- CXXFLAGS += -pedantic -Wno-long-long -Wextra
+ CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra
- CXXFLAGS += -wd383,869,981,10187,10188,11505,11503
+ CXXFLAGS += -wd383,981,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
template<Color Us>
Score evaluate_passed_pawns(const Position& pos, EvalInfo& ei);
template<Color Us>
Score evaluate_passed_pawns(const Position& pos, EvalInfo& ei);
- Score apply_weight(Score v, Score weight);
+ inline Score apply_weight(Score v, Score weight);
Value scale_by_game_phase(const Score& v, Phase ph, ScaleFactor sf);
Score weight_option(const std::string& mgOpt, const std::string& egOpt, Score internalWeight);
void init_safety();
Value scale_by_game_phase(const Score& v, Phase ph, ScaleFactor sf);
Score weight_option(const std::string& mgOpt, const std::string& egOpt, Score internalWeight);
void init_safety();
class MaterialInfoTable {
class MaterialInfoTable {
+ MaterialInfoTable(const MaterialInfoTable&);
+ MaterialInfoTable& operator=(const MaterialInfoTable&);
+
public:
MaterialInfoTable();
~MaterialInfoTable();
public:
MaterialInfoTable();
~MaterialInfoTable();
enum SideType { KingSide, QueenSide };
enum SideType { KingSide, QueenSide };
+ PawnInfoTable(const PawnInfoTable&);
+ PawnInfoTable& operator=(const PawnInfoTable&);
+
public:
PawnInfoTable();
~PawnInfoTable();
public:
PawnInfoTable();
~PawnInfoTable();
class TranspositionTable {
class TranspositionTable {
+ TranspositionTable(const TranspositionTable&);
+ TranspositionTable& operator=(const TranspositionTable&);
+
public:
TranspositionTable();
~TranspositionTable();
public:
TranspositionTable();
~TranspositionTable();
inline T operator- (const T d) { OK(T); return T(-int(d)); }
template<typename T>
inline T operator- (const T d) { OK(T); return T(-int(d)); }
template<typename T>
-inline void operator++ (T& d, int) { OK(T); d = T(int(d) + 1); }
+inline T operator++ (T& d, int) { OK(T); d = T(int(d) + 1); return d; }
-inline void operator-- (T& d, int) { OK(T); d = T(int(d) - 1); }
+inline T operator-- (T& d, int) { OK(T); d = T(int(d) - 1); return d; }
template<typename T>
inline void operator+= (T& d1, const T d2) { OK(T); d1 = d1 + d2; }
template<typename T>
inline void operator+= (T& d1, const T d2) { OK(T); d1 = d1 + d2; }