From: Marco Costalba Date: Sun, 5 Oct 2014 08:53:31 +0000 (+0200) Subject: Fix some warnings with Intel C++ compiler X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=c97b702f4d501a9b3f025cd7f02d84c4638b7c2a Fix some warnings with Intel C++ compiler No functional change. --- diff --git a/src/Makefile b/src/Makefile index 1e5a1658..92072cc1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -285,7 +285,11 @@ endif ### 3.9 popcnt ifeq ($(popcnt),yes) - CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT + ifeq ($(comp),icc) + CXXFLAGS += -msse3 -DUSE_POPCNT + else + CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT + endif endif ### 3.10 pext diff --git a/src/tt.cpp b/src/tt.cpp index 46d891cd..4afd965b 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -75,7 +75,7 @@ const TTEntry* TranspositionTable::probe(const Key key) const { for (unsigned i = 0; i < TTClusterSize; ++i, ++tte) if (tte->key16 == key16) { - tte->genBound8 = generation | tte->bound(); // Refresh + tte->genBound8 = uint8_t(generation | tte->bound()); // Refresh return tte; }