]> git.eshelyaron.com Git - emacs.git/commitdiff
; Silence byte-compiler in two tests
authorStefan Kangas <stefan@marxist.se>
Sat, 30 Jul 2022 23:50:38 +0000 (01:50 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 30 Jul 2022 23:50:38 +0000 (01:50 +0200)
* test/lisp/subr-tests.el (test-print-unreadable-function):
* test/src/print-tests.el (test-print-unreadable-function-buffer):
Pacify byte-compiler.

test/lisp/subr-tests.el
test/src/print-tests.el

index 08f08f046650e743c3fbf69b099e139ee7b41af3..bc11e6f3c7de8154d5f349d84d5fabc0511b58e5 100644 (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 ()
index 37ee21af6bae281811562b02c0d919886752fd3f..b503bdeb998b4dc32fcdcd5dc6d937bc30743bcd 100644 (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)