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

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

[nongnu] elpa/geiser 9cad7e90a4 3/4: Silence byte-compiler


From: ELPA Syncer
Subject: [nongnu] elpa/geiser 9cad7e90a4 3/4: Silence byte-compiler
Date: Fri, 15 Dec 2023 18:59:35 -0500 (EST)

branch: elpa/geiser
commit 9cad7e90a4cdb22b35b01f682fcb8bba641b0a93
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Silence byte-compiler
    
    `dotimes' has a defect (and a fixme which is over a decade old) that
    causes a bogus (though technically correct) warning about VAR being
    unused, if RESULT is not omitted but does not use VAR.
---
 elisp/geiser-base.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 134a3f4a2f..6d6277f11e 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -20,7 +20,7 @@
   '(when (not (fboundp 'ring-member))
      (defun ring-member (ring item)
        (catch 'found
-         (dotimes (ind (ring-length ring) nil)
+         (dotimes (ind (ring-length ring))
            (when (equal item (ring-ref ring ind))
              (throw 'found ind)))))))
 



reply via email to

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