Consistent empty-body warning messages for let and let*
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--with-suppressed-warnings): Make warning messages for let and let* consistent with other empty-body warnings.
This commit is contained in:
parent
314cbef849
commit
29d23b7fa0
2 changed files with 3 additions and 3 deletions
|
@ -367,7 +367,7 @@ Assumes the caller has bound `macroexpand-all-environment'."
|
|||
(if (null body)
|
||||
(macroexp-unprogn
|
||||
(macroexp-warn-and-return
|
||||
(format "Empty %s body" fun)
|
||||
(format "`%s' with empty body" fun)
|
||||
nil (list 'empty-body fun) 'compile-only fun))
|
||||
(macroexp--all-forms body))
|
||||
(cdr form))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue