From: Stefan Kangas Date: Sat, 30 Jul 2022 23:50:38 +0000 (+0200) Subject: ; Silence byte-compiler in two tests X-Git-Tag: emacs-29.0.90~1447^2~631 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88d719e95b76ccb38e4a39b24729d5b3d9514118;p=emacs.git ; Silence byte-compiler in two tests * test/lisp/subr-tests.el (test-print-unreadable-function): * test/src/print-tests.el (test-print-unreadable-function-buffer): Pacify byte-compiler. --- diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 08f08f04665..bc11e6f3c7d 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -1044,7 +1044,8 @@ final or penultimate step during initialization.")) ;; Check that problem with unwinding properly is fixed (bug#56773). (with-temp-buffer (let ((buf (current-buffer))) - (readablep (make-marker)) + (let ((_ (readablep (make-marker)))) nil) ; this `let' silences a + ; warning (should (eq buf (current-buffer)))))) (ert-deftest test-string-lines () diff --git a/test/src/print-tests.el b/test/src/print-tests.el index 37ee21af6ba..b503bdeb998 100644 --- a/test/src/print-tests.el +++ b/test/src/print-tests.el @@ -536,7 +536,8 @@ otherwise, use a different charset." (let ((print-unreadable-function (lambda (_object _escape) (setq callback-buffer (current-buffer))))) - (prin1-to-string (make-marker))) + (let ((_ (prin1-to-string (make-marker)))) nil)) ; this `let' silences a + ; warning (should (eq current callback-buffer))))) (provide 'print-tests)