emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/gnugo 0f3f4b6 165/357: [gnugo int] Use ‘ignore’ to avo


From: Stefan Monnier
Subject: [elpa] externals/gnugo 0f3f4b6 165/357: [gnugo int] Use ‘ignore’ to avoid byte-compiler warnings.
Date: Sun, 29 Nov 2020 14:51:13 -0500 (EST)

branch: externals/gnugo
commit 0f3f4b6dcb6de2967cfc4690aedcbe26916b0e97
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [gnugo int] Use ‘ignore’ to avoid byte-compiler warnings.
    
    * packages/gnugo/gnugo.el (gnugo-frolic-prune-branch)
    (:gnugo-gtp-command-spec final_score): ...here.
---
 gnugo.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index c2d228b..900fcb2 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1073,9 +1073,9 @@ This fails if the monkey is on the current branch
       (user-error "Cannot prune with monkey on branch"))
     (when (= 1 width)
       (user-error "Cannot prune last remaining branch"))
-    (let* ((new (append ends nil))
-           ;; Gratuitous ‘pop’ rv assignment avoids byte-compiler warning.
-           (bye (pop (nthcdr a new))))
+    (let ((new (append ends nil)))
+      ;; Explicit ignorance avoids byte-compiler warning.
+      (ignore (pop (nthcdr a new)))
       (gnugo--set-tree-ends tree new))
     (when (< a bidx)
       (aset monkey 1 (decf bidx)))
@@ -2465,6 +2465,8 @@ starting a new one.  See `gnugo-board-mode' documentation 
for more info."
                 (t (message "(no such command: %s)" sel)))))
 
       (deffull final_score
+        ;; Explicit ignorance avoids byte-compiler warning.
+        (ignore sel)
         (gnugo-display-final-score))
 
       (defgtp '(boardsize



reply via email to

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