projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7109307
)
* lisp/emacs-lisp/cconv.el (cconv--analyze-use): Tune down the warning
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 12 Mar 2021 03:27:41 +0000
(22:27 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 12 Mar 2021 03:27:41 +0000
(22:27 -0500)
Don't warn for always-nil bindings if the binding is made explicit.
Fixes bug#47080.
lisp/emacs-lisp/cconv.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cconv.el
b/lisp/emacs-lisp/cconv.el
index ca641a2ef0c712882e3502acb3bc0c5856b2893b..cfb0168a6e5323bd1985ea4c3184dec415df7892 100644
(file)
--- a/
lisp/emacs-lisp/cconv.el
+++ b/
lisp/emacs-lisp/cconv.el
@@
-602,7
+602,8
@@
FORM is the parent form that binds this var."
(byte-compile-warn
"%s `%S' not left unused" varkind var))
((and (let (or 'let* 'let) (car form))
- `(,(or `(,var) `(,var nil)) t nil ,_ ,_))
+ `(,`(,var) ;; (or `(,var nil) : Too many false positives: bug#47080
+ t nil ,_ ,_))
;; FIXME: Convert this warning to use `macroexp--warn-wrap'
;; so as to give better position information.
(unless (not (intern-soft var))