From: Stefan Kangas Date: Thu, 1 Oct 2020 13:34:08 +0000 (+0200) Subject: Silence byte-compiler in two tests X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~5007 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af72f6d5109ba2b6e92bbc6f1ef12d83dae70e13;p=emacs.git 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. --- 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))))