aboutsummaryrefslogtreecommitdiff
path: root/argot.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-07-19 22:11:15 -0700
committercolin <colin@cicadas.surf>2023-07-19 22:11:15 -0700
commit5cdf8f785d99d184bc8d47b4d5a7899696bf900d (patch)
tree5d5cd47bba6d5dcc7d5d9054c5bc793a632fee21 /argot.lisp
parentcd3d2712b0711505a5253328c2d9cfd75f507f42 (diff)
ignoreing unused vars in action lambdas
Diffstat (limited to 'argot.lisp')
-rw-r--r--argot.lisp4
1 files changed, 3 insertions, 1 deletions
diff --git a/argot.lisp b/argot.lisp
index e47643b..5423fb1 100644
--- a/argot.lisp
+++ b/argot.lisp
@@ -92,7 +92,9 @@ and it returns VAR in that case."
(funcall ,action ,lhs)))))
((consp action)
(list :action `(lambda (,bindings-var)
- (let ,bindings ,action))))))
+ (let ,bindings
+ (declare (ignore ,lhs))
+ ,action))))))
(rule-includer (name lhs pattern &optional action bindings)
`(include-rule
,name