aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-13 01:14:47 +0200
committerLars Ingebrigtsen2019-06-13 01:14:47 +0200
commite4636297c630a81e1e201210b4e6da7e99b823a7 (patch)
treeebc4007d7d7b26471809ebd1705a412ff46772ef
parentafa47a6dd0c931e2b712404f7b00e5942b8a2dda (diff)
downloademacs-e4636297c630a81e1e201210b4e6da7e99b823a7.tar.gz
emacs-e4636297c630a81e1e201210b4e6da7e99b823a7.zip
Compilation warning fix for byte-run.el
* lisp/emacs-lisp/byte-run.el (macro-declaration-function): Suppress warning about obsolete function used by obsolete variable.
-rw-r--r--lisp/emacs-lisp/byte-run.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 6a21a0c909d..81f8f11044e 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -45,12 +45,13 @@ So far, FUNCTION can only be a symbol, not a lambda expression."
45;; `macro-declaration-function' are both obsolete (as marked at the end of this 45;; `macro-declaration-function' are both obsolete (as marked at the end of this
46;; file) but used in many .elc files. 46;; file) but used in many .elc files.
47 47
48(defvar macro-declaration-function #'macro-declaration-function 48(with-suppressed-warnings ((obsolete macro-declaration-function))
49 "Function to process declarations in a macro definition. 49 (defvar macro-declaration-function #'macro-declaration-function
50 "Function to process declarations in a macro definition.
50The function will be called with two args MACRO and DECL. 51The function will be called with two args MACRO and DECL.
51MACRO is the name of the macro being defined. 52MACRO is the name of the macro being defined.
52DECL is a list `(declare ...)' containing the declarations. 53DECL is a list `(declare ...)' containing the declarations.
53The value the function returns is not used.") 54The value the function returns is not used."))
54 55
55(defalias 'macro-declaration-function 56(defalias 'macro-declaration-function
56 #'(lambda (macro decl) 57 #'(lambda (macro decl)