]> git.sesse.net Git - stockfish/commitdiff
Fix a MSVC warning at W4
authorMarco Costalba <mcostalba@gmail.com>
Mon, 19 Jan 2015 07:11:43 +0000 (08:11 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 25 Jan 2015 08:36:05 +0000 (09:36 +0100)
Warning is C4512 (assignment operator could not be generated)

Now, apart the foreign syzygy code, everything compiles
without warnings at warning level 4.

Backported from C++11 branch.

No functional change.

src/endgame.h

index 8a42eda29d1393891415af23f2e22d919c316955..d7a7681abd985910b8ddf53254a4ab4394f64dc2 100644 (file)
@@ -89,7 +89,7 @@ struct Endgame : public EndgameBase<T> {
   T operator()(const Position&) const;
 
 private:
   T operator()(const Position&) const;
 
 private:
-  const Color strongSide, weakSide;
+  Color strongSide, weakSide;
 };
 
 
 };