diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-11-28 18:00:44 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-11-28 18:10:23 +0100 |
commit | 1e8074f5ea9e61a6fba33ab2af0c79b9af7d7a24 (patch) | |
tree | 8c62d77d1c82b661604d36ca365cd6ca164c7668 /lisp/emacs-lisp | |
parent | 58128f9b0554f2a7fb1c6638b463f5d4fcd98c7c (diff) | |
download | emacs-1e8074f5ea9e61a6fba33ab2af0c79b9af7d7a24.tar.gz emacs-1e8074f5ea9e61a6fba33ab2af0c79b9af7d7a24.tar.bz2 emacs-1e8074f5ea9e61a6fba33ab2af0c79b9af7d7a24.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/byte-run.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index d82d9454e84..ac3bb86a597 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -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 |