diff options
author | Glenn Morris <rgm@gnu.org> | 2007-10-28 23:52:21 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-10-28 23:52:21 +0000 |
commit | e92d2ff73148df56fe4dc57b10480b73c56b184e (patch) | |
tree | bc15d912d34f811e9b082e727331ed8ae7d8c80c /lisp/emacs-lisp/advice.el | |
parent | 7187be8be74f54adcfefb9d69ab3a00f4967841c (diff) | |
download | emacs-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.el | 7 |
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)))))) |