Don't warn about _ not left unused in if-let and alike
The macro expansions did not leave a variable _ unused; this triggered an irritating compiler warning (bug#69108). * lisp/subr.el (internal--build-binding): Handle bindings of the form (_ EXPR) separately.
This commit is contained in:
committed by
Eli Zaretskii
parent
6b800f9adf
commit
e680827e81
@@ -2580,6 +2580,8 @@ Affects only hooks run in the current buffer."
|
||||
(list binding binding))
|
||||
((null (cdr binding))
|
||||
(list (make-symbol "s") (car binding)))
|
||||
((eq '_ (car binding))
|
||||
(list (make-symbol "s") (cadr binding)))
|
||||
(t binding)))
|
||||
(when (> (length binding) 2)
|
||||
(signal 'error
|
||||
|
||||
Reference in New Issue
Block a user