diff options
author | Tianxiang Xiong <tianxiang.xiong@gmail.com> | 2017-12-17 19:49:54 -0800 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2017-12-18 07:36:27 +0000 |
commit | 95c7e6b90ec18cbe1eb099060f3cadfc85798a31 (patch) | |
tree | 4092fbba44bb4e45e6e0baaf100c2b5d5dd871de /test | |
parent | 99ebdce0d80dd6895101cf4a99d0cc1cceec130f (diff) |
Avoid spurious unused lexical arg warning from Emacs <25.1
See: https://emacs.stackexchange.com/a/10058/10269
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/cider-bytecomp-warnings.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scripts/cider-bytecomp-warnings.el b/test/scripts/cider-bytecomp-warnings.el index ee6960ff..cdc632d9 100644 --- a/test/scripts/cider-bytecomp-warnings.el +++ b/test/scripts/cider-bytecomp-warnings.el @@ -35,6 +35,12 @@ (package-initialize) (load-file "cider-autoloads.el") (setq byte-compile-error-on-warn t) + +;; Avoid spurious unused lexical arg warning from `condition-case' +;; See: https://emacs.stackexchange.com/a/10058/10269 +(when (version< emacs-version "25.1") + (setq byte-compile--use-old-handlers nil)) + (batch-byte-compile) ;;; cider-bytecomp-warnings.el ends here |