]> git.eshelyaron.com Git - emacs.git/commitdiff
(ad-compile-function): Use byte-compile-disable-warning.
authorGlenn Morris <rgm@gnu.org>
Sun, 28 Oct 2007 23:52:21 +0000 (23:52 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 28 Oct 2007 23:52:21 +0000 (23:52 +0000)
lisp/emacs-lisp/advice.el

index 21136721e60b04a691dc34d2bc86b0c89953e2a0..f9c778443b4a9237abd8e56f6e90ad6457cf76f3 100644 (file)
@@ -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))))))