Skip to content

Commit

Permalink
Silence a warning under MSVC
Browse files Browse the repository at this point in the history
warning C4100: 'ci' : unreferenced formal parameter

It is a silly and wrong one, but just silent it.

No functional change.
  • Loading branch information
mcostalba committed Feb 1, 2015
1 parent 519b2fe commit 2112028
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/movegen.cpp
Expand Up @@ -61,7 +61,7 @@ namespace {

(moveList++)->move = m;

return moveList;
return (void)ci, moveList; // Silence a warning under MSVC
}


Expand All @@ -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<PROMOTION>(to - Delta, to, KNIGHT);
else
(void)ci; // Silence a warning under MSVC

return moveList;
return (void)ci, moveList; // Silence a warning under MSVC
}


Expand Down

0 comments on commit 2112028

Please sign in to comment.