; 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.
This commit is contained in:
Stefan Kangas 2022-07-31 01:50:38 +02:00
parent 5b29f8cd98
commit 88d719e95b
2 changed files with 4 additions and 2 deletions

View file

@ -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 ()

View file

@ -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)