emacs-diffs
[Top][All Lists]
Advanced

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

master 4b47eb3: Fix byte-compilation warning in benchmark-run


From: Lars Ingebrigtsen
Subject: master 4b47eb3: Fix byte-compilation warning in benchmark-run
Date: Wed, 10 Mar 2021 09:53:00 -0500 (EST)

branch: master
commit 4b47eb32c6a45ac9f4d4895c1a6dd6db441baafb
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix byte-compilation warning in benchmark-run
    
    * lisp/emacs-lisp/benchmark.el (benchmark-run): Avoid a
    byte-compilation warning about an empty let body (bug#46819).
---
 lisp/emacs-lisp/benchmark.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/benchmark.el b/lisp/emacs-lisp/benchmark.el
index 14bc281..2a3efbe 100644
--- a/lisp/emacs-lisp/benchmark.el
+++ b/lisp/emacs-lisp/benchmark.el
@@ -62,7 +62,8 @@ See also `benchmark-run-compiled'."
                  ;; Take account of the loop overhead.
                  `(- (benchmark-elapse (dotimes (,i ,repetitions)
                                          ,@forms))
-                     (benchmark-elapse (dotimes (,i ,repetitions))))
+                     (benchmark-elapse (dotimes (,i ,repetitions)
+                                          nil)))
                `(benchmark-elapse ,@forms))
             (- gcs-done ,gcs)
             (- gc-elapsed ,gc)))))



reply via email to

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