Avoid unused argument warnings in lambda compiler macros

* lisp/emacs-lisp/byte-run.el (byte-run--set-compiler-macro):
Don't warn when a compiler macro with lambda-form expander does not
use all the arguments of the function.  Nobody expected any warning
since the arguments look like free variables inside the lambda form.
This commit is contained in:
Mattias Engdegård 2021-11-28 18:00:44 +01:00
parent 58128f9b05
commit 1e8074f5ea

View file

@ -134,6 +134,7 @@ The return value of this function is not used."
:autoload-end
(eval-and-compile
(defun ,cfname (,@(car data) ,@args)
(ignore ,@(remq '&rest (remq '&optional args)))
,@(cdr data))))))))
(defalias 'byte-run--set-doc-string