]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Silence a bunch of warnings under MSVC /W4
[stockfish] / src / position.h
index e5b5f5aa4a85dd7a2aa2c26222d8c6f2822b477b..d2b37478e4ce681714fc11b654986da82a016209 100644 (file)
 // Forcing value to bool 'true' or 'false' (performance warning)
 #pragma warning(disable: 4800)
 
+// Conditional expression is constant
+#pragma warning(disable: 4127)
+
+
 #endif
 
 ////
@@ -305,7 +309,7 @@ private:
   void allow_ooo(Color c);
 
   // Helper functions for doing and undoing moves
-  void do_capture_move(Move m, PieceType capture, Color them, Square to);
+  void do_capture_move(PieceType capture, Color them, Square to);
   void do_castle_move(Move m);
   void do_promotion_move(Move m);
   void do_ep_move(Move m);