mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
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.
This commit is contained in:
parent
519b2fe849
commit
21120288a3
1 changed files with 2 additions and 4 deletions
|
@ -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<PROMOTION>(to - Delta, to, KNIGHT);
|
||||
else
|
||||
(void)ci; // Silence a warning under MSVC
|
||||
|
||||
return moveList;
|
||||
return (void)ci, moveList; // Silence a warning under MSVC
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue