]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning in snake.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 30 Aug 2020 12:16:07 +0000 (14:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 30 Aug 2020 12:16:07 +0000 (14:16 +0200)
* lisp/play/snake.el (snake-reset-game): Avoid warning about
unused variable.

lisp/play/snake.el

index 00072a4c05c682f7c77e70e09f9c2510808db9be..8ea214d802517e289c5343a88eb2c261ce216ed7 100644 (file)
@@ -279,7 +279,7 @@ and then start moving it leftwards.")
        snake-velocity-queue    nil)
   (let ((x snake-initial-x)
        (y snake-initial-y))
-    (dotimes (i snake-length)
+    (dotimes (_ snake-length)
       (gamegrid-set-cell x y snake-snake)
       (setq snake-positions (cons (vector x y) snake-positions))
       (cl-incf x snake-velocity-x)