X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=274412f408199e84b6512728b68ce9eb712aec3d;hp=111895876459d0b9b67921ae305a57bc13b70748;hb=ca3835857435590865fd41aac9bf4c1cda76dfc3;hpb=83e19fbed539fc05626d82afefde730bdcb344ab diff --git a/src/movegen.cpp b/src/movegen.cpp index 11189587..274412f4 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -58,10 +58,11 @@ namespace { if (Checks && !pos.gives_check(m, *ci)) return moveList; + else + (void)ci; // Silence a warning under MSVC *moveList++ = m; - - return (void)ci, moveList; // Silence a warning under MSVC + return moveList; } @@ -82,8 +83,10 @@ namespace { // that's not already included in the queen promotion. if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ci->ksq)) *moveList++ = make(to - Delta, to, KNIGHT); + else + (void)ci; // Silence a warning under MSVC - return (void)ci, moveList; // Silence a warning under MSVC + return moveList; }