mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Warnings termination fest
A bunch of Intel C++ warnings removed, other silent out. Still few remaining but need deeper look. Also usual whitespace crap removal noise. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
060eef4f4e
commit
7dd0c39714
9 changed files with 181 additions and 176 deletions
10
src/Makefile
10
src/Makefile
|
@ -43,9 +43,9 @@ clean:
|
|||
### Compiler:
|
||||
###
|
||||
|
||||
CXX = g++
|
||||
# CXX = g++
|
||||
# CXX = g++-4.2
|
||||
# CXX = icpc
|
||||
CXX = icpc
|
||||
|
||||
|
||||
###
|
||||
|
@ -80,6 +80,10 @@ CXXFLAGS += -Wall -g
|
|||
|
||||
CXXFLAGS += -O3 -fno-exceptions -fomit-frame-pointer -fno-rtti -fstrict-aliasing
|
||||
|
||||
# Disable most annoying warnings for the Intel C++ compiler
|
||||
|
||||
CXXFLAGS += -wd383,869,981
|
||||
|
||||
|
||||
# Compiler optimization flags for the Intel C++ compiler in Mac OS X:
|
||||
|
||||
|
@ -93,7 +97,7 @@ CXXFLAGS += -O3 -fno-exceptions -fomit-frame-pointer -fno-rtti -fstrict-aliasing
|
|||
# wait 15 minutes for the benchmark to complete). Then do a 'make clean', and
|
||||
# recompile with -prof_use.
|
||||
|
||||
# CXXFLAGS += -prof_gen -prof_dir ./profdata
|
||||
# CXXFLAGS += -prof_gen -prof_dir profdata
|
||||
# CXXFLAGS += -prof_use -prof_dir ./profdata
|
||||
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ namespace {
|
|||
#if defined(USE_COMPACT_ROOK_ATTACKS)
|
||||
void init_file_and_rank_attacks();
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
////
|
||||
|
|
|
@ -268,7 +268,7 @@ namespace {
|
|||
void evaluate_trapped_bishop_a1h1(const Position &pos, Square s, Color us,
|
||||
EvalInfo &ei);
|
||||
|
||||
Value apply_weight(Value v, int w);
|
||||
inline Value apply_weight(Value v, int w);
|
||||
Value scale_by_game_phase(Value mv, Value ev, Phase ph, ScaleFactor sf[]);
|
||||
|
||||
int count_1s_8bit(Bitboard b);
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace {
|
|||
Key KNPKMaterialKey, KKNPMaterialKey;
|
||||
Key KPKPMaterialKey;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
////
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
*/
|
||||
|
||||
#include "types.h"
|
||||
#include "mersenne.h"
|
||||
|
||||
/* Period parameters */
|
||||
#define N 624
|
||||
|
@ -54,7 +55,7 @@ static unsigned long mt[N]; /* the array for the state vector */
|
|||
static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */
|
||||
|
||||
/* initializes mt[N] with a seed */
|
||||
void init_genrand(unsigned long s)
|
||||
static void init_genrand(unsigned long s)
|
||||
{
|
||||
mt[0]= s & 0xffffffffUL;
|
||||
for (mti=1; mti<N; mti++) {
|
||||
|
@ -73,7 +74,7 @@ void init_genrand(unsigned long s)
|
|||
/* init_key is the array for initializing keys */
|
||||
/* key_length is its length */
|
||||
/* slight change for C++, 2004/2/26 */
|
||||
void init_by_array(unsigned long init_key[], int key_length)
|
||||
static void init_by_array(unsigned long init_key[], int key_length)
|
||||
{
|
||||
int i, j, k;
|
||||
init_genrand(19650218UL);
|
||||
|
|
|
@ -69,16 +69,16 @@ namespace {
|
|||
|
||||
public:
|
||||
RootMoveList(Position &pos, Move searchMoves[]);
|
||||
Move get_move(int moveNum) const;
|
||||
Value get_move_score(int moveNum) const;
|
||||
void set_move_score(int moveNum, Value score);
|
||||
void set_move_nodes(int moveNum, int64_t nodes);
|
||||
inline Move get_move(int moveNum) const;
|
||||
inline Value get_move_score(int moveNum) const;
|
||||
inline void set_move_score(int moveNum, Value score);
|
||||
inline void set_move_nodes(int moveNum, int64_t nodes);
|
||||
void set_move_pv(int moveNum, const Move pv[]);
|
||||
Move get_move_pv(int moveNum, int i) const;
|
||||
int64_t get_move_cumulative_nodes(int moveNum) const;
|
||||
int move_count() const;
|
||||
inline Move get_move_pv(int moveNum, int i) const;
|
||||
inline int64_t get_move_cumulative_nodes(int moveNum) const;
|
||||
inline int move_count() const;
|
||||
Move scan_for_easy_move() const;
|
||||
void sort();
|
||||
inline void sort();
|
||||
void sort_multipv(int n);
|
||||
|
||||
private:
|
||||
|
|
2
src/tt.h
2
src/tt.h
|
@ -72,7 +72,7 @@ public:
|
|||
int full();
|
||||
|
||||
private:
|
||||
TTEntry* first_entry(const Position &pos) const;
|
||||
inline TTEntry* first_entry(const Position &pos) const;
|
||||
|
||||
unsigned size;
|
||||
int writes;
|
||||
|
|
Loading…
Add table
Reference in a new issue