]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence "Unknown slot" warnings in tests
authorStefan Kangas <stefan@marxist.se>
Sun, 19 Dec 2021 13:45:55 +0000 (14:45 +0100)
committerStefan Kangas <stefan@marxist.se>
Sun, 19 Dec 2021 13:45:55 +0000 (14:45 +0100)
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
* test/lisp/net/ntlm-tests.el: Silence byte-compiler.

test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
test/lisp/net/ntlm-tests.el

index 599d7900c308340cf2358c15ab4f37888eb63e38..1595d1a0840052991ce17e8372e12021ecc13597 100644 (file)
 
 (eval-when-compile (require 'cl-lib))
 
+;; Silence byte-compiler.
+(eval-when-compile
+  (dolist (slot '(:a :b ooga-booga :derived-value missing-slot))
+    (cl-pushnew slot eieio--known-slot-names)))
+
 ;;; Code:
 ;; Set up some test classes
 (defclass class-a ()
index 2420b3b48a9c6859ad8f2313df07924172760672..7b89e6b07843fa8c38fd87c1c18d85bfd7f3e956 100644 (file)
@@ -227,6 +227,8 @@ This string will be returned from the NTLM server to the NTLM client."
 
 ;; Silence some byte-compiler warnings that occur when
 ;; web-server/web-server.el is not found.
+(eval-when-compile (cl-pushnew 'headers eieio--known-slot-names)
+                   (cl-pushnew 'process eieio--known-slot-names))
 (declare-function ws-send nil)
 (declare-function ws-parse-request nil)
 (declare-function ws-start nil)