[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6ac270d: Fix compilation warning in snake.el

From: Lars Ingebrigtsen
Subject: master 6ac270d: Fix compilation warning in snake.el
Date: Sun, 30 Aug 2020 08:16:30 -0400 (EDT)

branch: master
commit 6ac270dcd35df3cc8cbcdc4b7d01da2c99537a6a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix compilation warning in snake.el
    * lisp/play/snake.el (snake-reset-game): Avoid warning about
    unused variable.
 lisp/play/snake.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/play/snake.el b/lisp/play/snake.el
index 00072a4..8ea214d 100644
--- a/lisp/play/snake.el
+++ b/lisp/play/snake.el
@@ -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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]