src/chess/pawn.c

changeset 193
d1420f5c5704
parent 170
bde99d803caf
child 194
619f07c95894
--- a/src/chess/pawn.c	Mon Aug 24 16:13:51 2026 +0200
+++ b/src/chess/pawn.c	Tue Aug 25 18:35:18 2026 +0200
@@ -80,6 +80,7 @@
 
 size_t pawn_moves(const GameState *gamestate,
         Color c, Row r, File f, Move *moves) {
+    (void) gamestate; /* no (theoretical) move depends on the game state */
     size_t count = 0;
     int rowdelta = c == WHITE ? 1 : -1;
     int promotionrow = c == WHITE ? 7 : 0;

mercurial