From c97b702f4d501a9b3f025cd7f02d84c4638b7c2a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 5 Oct 2014 10:53:31 +0200 Subject: [PATCH 1/1] Fix some warnings with Intel C++ compiler No functional change. --- src/Makefile | 6 +++++- src/tt.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.2