Skip to content

Commit 95c7e6b

Browse files
xiongtxbbatsov
authored andcommitted
Avoid spurious unused lexical arg warning from Emacs <25.1
See: https://emacs.stackexchange.com/a/10058/10269
1 parent 99ebdce commit 95c7e6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/scripts/cider-bytecomp-warnings.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
(package-initialize)
3636
(load-file "cider-autoloads.el")
3737
(setq byte-compile-error-on-warn t)
38+
39+
;; Avoid spurious unused lexical arg warning from `condition-case'
40+
;; See: https://emacs.stackexchange.com/a/10058/10269
41+
(when (version< emacs-version "25.1")
42+
(setq byte-compile--use-old-handlers nil))
43+
3844
(batch-byte-compile)
3945

4046
;;; cider-bytecomp-warnings.el ends here

0 commit comments

Comments
 (0)