From: Marco Costalba Date: Sun, 1 Feb 2015 09:40:22 +0000 (+0100) Subject: Silence a warning under MSVC X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=21120288a385cb2eabb9d32f6dc6007a03adf382;hp=519b2fe849760d3cab5cce9ef9dc3cd076bd300d Silence a warning under MSVC warning C4100: 'ci' : unreferenced formal parameter It is a silly and wrong one, but just silent it. No functional change. --- diff --git a/src/movegen.cpp b/src/movegen.cpp index cf65cd62..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 }