aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Kangas2022-01-27 04:23:18 +0100
committerStefan Kangas2022-01-27 04:25:08 +0100
commit2b150f943bc875cf9ce5ac614472e27db697fff9 (patch)
tree894bd89f0465cfefbed30dac657a3710dbe450eb /test/src
parent5b931eb8ff088891c73a9c952f19e20ccd7e2dae (diff)
downloademacs-2b150f943bc875cf9ce5ac614472e27db697fff9.tar.gz
emacs-2b150f943bc875cf9ce5ac614472e27db697fff9.zip
Silence byte-compiler slightly in tests
* test/src/comp-resources/comp-test-45603.el (comp-test-45603--call-marked): * test/src/comp-resources/comp-test-funcs.el (comp-tests-discardn-f, comp-test-42360-f, comp-test-46824-1-f) (comp-test-silly-frame2): Silence byte-compiler.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-resources/comp-test-45603.el5
-rw-r--r--test/src/comp-resources/comp-test-funcs.el10
2 files changed, 8 insertions, 7 deletions
diff --git a/test/src/comp-resources/comp-test-45603.el b/test/src/comp-resources/comp-test-45603.el
index f1c0dafb68d..65147ee0156 100644
--- a/test/src/comp-resources/comp-test-45603.el
+++ b/test/src/comp-resources/comp-test-45603.el
@@ -7,7 +7,7 @@
7(defvar comp-test-45603-directory) 7(defvar comp-test-45603-directory)
8(defvar comp-test-45603-marked-candidates) 8(defvar comp-test-45603-marked-candidates)
9 9
10(defun comp-test-45603--call-marked (action) 10(defun comp-test-45603--call-marked (_action)
11 (let* ((prefix-len (length comp-test-45603-mark-prefix)) 11 (let* ((prefix-len (length comp-test-45603-mark-prefix))
12 (marked-candidates 12 (marked-candidates
13 (mapcar 13 (mapcar
@@ -17,7 +17,8 @@
17 (expand-file-name cand comp-test-45603-directory) 17 (expand-file-name cand comp-test-45603-directory)
18 cand))) 18 cand)))
19 comp-test-45603-marked-candidates)) 19 comp-test-45603-marked-candidates))
20 (multi-action (comp-test-45603--get-multi-action comp-test-45603-last))))) 20 (_multi-action (comp-test-45603--get-multi-action comp-test-45603-last)))
21 marked-candidates))
21 22
22(defalias 'comp-test-45603--file-local-name 23(defalias 'comp-test-45603--file-local-name
23 (if (fboundp 'file-local-name) 24 (if (fboundp 'file-local-name)
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el
index b3fd2bcd175..0a60f4d6cc4 100644
--- a/test/src/comp-resources/comp-test-funcs.el
+++ b/test/src/comp-resources/comp-test-funcs.el
@@ -189,7 +189,7 @@
189 ;; Bnumberp 189 ;; Bnumberp
190 (numberp x)) 190 (numberp x))
191 191
192(defun comp-tests-discardn-f (x) 192(defun comp-tests-discardn-f (_x)
193 ;; BdiscardN 193 ;; BdiscardN
194 (1+ (let ((a 1) 194 (1+ (let ((a 1)
195 (_b) 195 (_b)
@@ -297,8 +297,8 @@
297 ;; potentially use all registers and that is modifying local 297 ;; potentially use all registers and that is modifying local
298 ;; variables inside condition-case. 298 ;; variables inside condition-case.
299 (let ((str-len (length str)) 299 (let ((str-len (length str))
300 (str-width 14) 300 (_str-width 14)
301 (ellipsis-width 3) 301 (_ellipsis-width 3)
302 (idx 0) 302 (idx 0)
303 (column 0) 303 (column 0)
304 (head-padding "") (tail-padding "") 304 (head-padding "") (tail-padding "")
@@ -489,7 +489,7 @@
489(cl-defun comp-test-46824-1-f () 489(cl-defun comp-test-46824-1-f ()
490 (let ((next-repos '(1))) 490 (let ((next-repos '(1)))
491 (while t 491 (while t
492 (let ((recipe (car next-repos))) 492 (let ((_recipe (car next-repos)))
493 (cl-block loop 493 (cl-block loop
494 (while t 494 (while t
495 (let ((err 495 (let ((err
@@ -640,7 +640,7 @@
640 (2 2)) 640 (2 2))
641 3)))) 641 3))))
642 642
643(defun comp-test-silly-frame2 (token) 643(defun comp-test-silly-frame2 (_token)
644 ;; Check robustness against dead code. 644 ;; Check robustness against dead code.
645 (while c 645 (while c
646 (cl-case c 646 (cl-case c