diff options
| -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." | |||
| 2675 | (ad-with-auto-activation-disabled | 2675 | (ad-with-auto-activation-disabled |
| 2676 | (require 'bytecomp) | 2676 | (require 'bytecomp) |
| 2677 | (let ((symbol (make-symbol "advice-compilation")) | 2677 | (let ((symbol (make-symbol "advice-compilation")) |
| 2678 | (byte-compile-warnings | 2678 | (byte-compile-warnings byte-compile-warnings)) |
| 2679 | (if (listp byte-compile-warnings) byte-compile-warnings | ||
| 2680 | byte-compile-warning-types))) | ||
| 2681 | (if (featurep 'cl) | 2679 | (if (featurep 'cl) |
| 2682 | (setq byte-compile-warnings | 2680 | (byte-compile-disable-warning 'cl-functions)) |
| 2683 | (remq 'cl-functions byte-compile-warnings))) | ||
| 2684 | (fset symbol (symbol-function function)) | 2681 | (fset symbol (symbol-function function)) |
| 2685 | (byte-compile symbol) | 2682 | (byte-compile symbol) |
| 2686 | (fset function (symbol-function symbol)))))) | 2683 | (fset function (symbol-function symbol)))))) |