From af72f6d5109ba2b6e92bbc6f1ef12d83dae70e13 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 1 Oct 2020 15:34:08 +0200 Subject: [PATCH] Silence byte-compiler in two tests * test/lisp/obsolete/cl-tests.el (require): * test/lisp/simple-tests.el (simple-test-count-words-bug-41761): Silence byte-compiler. --- test/lisp/obsolete/cl-tests.el | 3 ++- test/lisp/simple-tests.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/lisp/obsolete/cl-tests.el b/test/lisp/obsolete/cl-tests.el index 37061df0a7a..3f3fda3638e 100644 --- a/test/lisp/obsolete/cl-tests.el +++ b/test/lisp/obsolete/cl-tests.el @@ -21,7 +21,8 @@ ;;; Code: -(require 'cl) +(with-no-warnings + (require 'cl)) (require 'ert) diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el index 457de91c149..d4b316811e6 100644 --- a/test/lisp/simple-tests.el +++ b/test/lisp/simple-tests.el @@ -44,7 +44,7 @@ ;;; `count-words' (ert-deftest simple-test-count-words-bug-41761 () (with-temp-buffer - (dotimes (i 10) (insert (propertize "test " 'field (cons nil nil)))) + (dotimes (_i 10) (insert (propertize "test " 'field (cons nil nil)))) (should (= (count-words (point-min) (point-max)) 10)))) -- 2.39.5