summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/advice.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-10-28 23:52:21 +0000
committerGlenn Morris <rgm@gnu.org>2007-10-28 23:52:21 +0000
commite92d2ff73148df56fe4dc57b10480b73c56b184e (patch)
treebc15d912d34f811e9b082e727331ed8ae7d8c80c /lisp/emacs-lisp/advice.el
parent7187be8be74f54adcfefb9d69ab3a00f4967841c (diff)
downloademacs-e92d2ff73148df56fe4dc57b10480b73c56b184e.tar.gz
emacs-e92d2ff73148df56fe4dc57b10480b73c56b184e.tar.bz2
emacs-e92d2ff73148df56fe4dc57b10480b73c56b184e.zip
(ad-compile-function): Use byte-compile-disable-warning.
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
-rw-r--r--lisp/emacs-lisp/advice.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 21136721e60..f9c778443b4 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -2675,12 +2675,9 @@ For that it has to be fbound with a non-autoload definition."
(ad-with-auto-activation-disabled
(require 'bytecomp)
(let ((symbol (make-symbol "advice-compilation"))
- (byte-compile-warnings
- (if (listp byte-compile-warnings) byte-compile-warnings
- byte-compile-warning-types)))
+ (byte-compile-warnings byte-compile-warnings))
(if (featurep 'cl)
- (setq byte-compile-warnings
- (remq 'cl-functions byte-compile-warnings)))
+ (byte-compile-disable-warning 'cl-functions))
(fset symbol (symbol-function function))
(byte-compile symbol)
(fset function (symbol-function symbol))))))