[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1e8074f 1/2: Avoid unused argument warnings in lambda compiler ma
From: |
Mattias Engdegård |
Subject: |
master 1e8074f 1/2: Avoid unused argument warnings in lambda compiler macros |
Date: |
Sun, 28 Nov 2021 12:13:06 -0500 (EST) |
branch: master
commit 1e8074f5ea9e61a6fba33ab2af0c79b9af7d7a24
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
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.
---
lisp/emacs-lisp/byte-run.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index d82d945..ac3bb86 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