]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Silence some warnings with MSVC 2013
[stockfish] / src / movegen.cpp
index 3a69f8ab998885e18277b25960bf90e31cd5ed0b..322d2a6584711d5cc9a7e661ff93bffd18dc4576 100644 (file)
@@ -82,6 +82,8 @@ namespace {
     // that's not already included in the queen promotion.
     if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq))
         *moveList++ = make<PROMOTION>(to - Delta, to, KNIGHT);
+    else
+        (void)ksq; // Silence a warning under MSVC
 
     return moveList;
   }