X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=f800fdc7c7a64c422688f6944785ce1644b07be3;hp=bfc8858aba912539e8c016ada7b2636d3d507120;hb=0dc6f16992c7e682be4be89123cdc5f6fb307606;hpb=4eb2d8ce095b284a1e55762548d9821a83a19b3b diff --git a/src/movegen.cpp b/src/movegen.cpp index bfc8858a..f800fdc7 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -61,7 +61,7 @@ namespace { (moveList++)->move = m; - return moveList; + return (void)ci, moveList; // Silence a warning under MSVC } @@ -82,10 +82,8 @@ namespace { // that's not already included in the queen promotion. if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ci->ksq)) (moveList++)->move = make(to - Delta, to, KNIGHT); - else - (void)ci; // Silence a warning under MSVC - return moveList; + return (void)ci, moveList; // Silence a warning under MSVC } @@ -256,7 +254,7 @@ namespace { template FORCE_INLINE ExtMove* generate_all(const Position& pos, ExtMove* moveList, Bitboard target, - const CheckInfo* ci = NULL) { + const CheckInfo* ci = nullptr) { const bool Checks = Type == QUIET_CHECKS;