1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00

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.
This commit is contained in:
Lars Ingebrigtsen 2019-06-13 01:14:47 +02:00
parent afa47a6dd0
commit e4636297c6

View file

@ -45,12 +45,13 @@ So far, FUNCTION can only be a symbol, not a lambda expression."
;; `macro-declaration-function' are both obsolete (as marked at the end of this
;; file) but used in many .elc files.
(defvar macro-declaration-function #'macro-declaration-function
"Function to process declarations in a macro definition.
(with-suppressed-warnings ((obsolete macro-declaration-function))
(defvar macro-declaration-function #'macro-declaration-function
"Function to process declarations in a macro definition.
The function will be called with two args MACRO and DECL.
MACRO is the name of the macro being defined.
DECL is a list `(declare ...)' containing the declarations.
The value the function returns is not used.")
The value the function returns is not used."))
(defalias 'macro-declaration-function
#'(lambda (macro decl)