]> 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>
Mon, 19 Jan 2015 07:11:43 +0000 (08:11 +0100)
Warning is C4512 (assignment operator could not be generated)

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

No functional change.

src/endgame.h

index 453d8b29d47d98780fb8a04bb00da8efed95ff8c..392788cfe9fbdc12373ce304cdcf45f748172caf 100644 (file)
@@ -90,7 +90,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;
 };
 
 
 };