Fix some warnings with Intel C++ compiler
authorMarco Costalba <mcostalba@gmail.com>
Sun, 5 Oct 2014 08:53:31 +0000 (10:53 +0200)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 12 Oct 2014 19:34:54 +0000 (20:34 +0100)
No functional change.

src/Makefile
src/tt.cpp

index 1e5a16580b188df89614665027b8681453082d51..92072cc1b07eb4b93ebec9bd1734043b8de72488 100644 (file)
@@ -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
index 46d891cd04f1558e76b0f2b9161d872c1928694a..4afd965b0fabb70abc106fa975a3e5c1ab469a8b 100644 (file)
@@ -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;
       }