(byte-compile-check-lambda-list):
Turn error for repeated variables into warning.
This commit is contained in:
parent
19d4e9a773
commit
e34fd2f2c0
2 changed files with 7 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
;;; This version incorporates changes up to version 2.10 of the
|
||||
;;; Zawinski-Furuseth compiler.
|
||||
(defconst byte-compile-version "$Revision: 2.88.1.1 $")
|
||||
(defconst byte-compile-version "$Revision: 2.89 $")
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
|
@ -2151,7 +2151,7 @@ If FORM is a lambda or a macro, byte-compile it as a function."
|
|||
(unless (cdr list)
|
||||
(error "Variable name missing after &optional")))
|
||||
((memq arg vars)
|
||||
(error "Repeated variable %s in lambda-list" arg))
|
||||
(byte-compile-warn "repeated variable %s in lambda-list" arg))
|
||||
(t
|
||||
(push arg vars))))
|
||||
(setq list (cdr list)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue