]> git.sesse.net Git - stockfish/blobdiff - src/color.h
Silence a bunch of warnings under MSVC /W4
[stockfish] / src / color.h
index 872c7b79548dce4524e1b35bfb49cf678356dbc8..30d86d6baf222284e266fd847570c78e58000d39 100644 (file)
@@ -38,7 +38,7 @@ enum Color {
 ////
 
 inline Color operator+ (Color c, int i) { return Color(int(c) + i); }
-inline void operator++ (Color &c, int i) { c = Color(int(c) + 1); }
+inline void operator++ (Color &c, int) { c = Color(int(c) + 1); }
 
 inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);