Merge from origin/emacs-26
134edc1
Warn about wrong number of args for subrs (Bug#35767)5f01af6
Use plain symbols for eieio type descriptors (Bug#29220)4b24b01
Pacify GCC 9 -Wredundant-decls
This commit is contained in:
commit
7e911d007d
6 changed files with 48 additions and 19 deletions
|
@ -1401,7 +1401,7 @@ when printing the error message."
|
|||
(defun byte-compile-callargs-warn (form)
|
||||
(let* ((def (or (byte-compile-fdefinition (car form) nil)
|
||||
(byte-compile-fdefinition (car form) t)))
|
||||
(sig (byte-compile--function-signature def))
|
||||
(sig (byte-compile--function-signature (or def (car form))))
|
||||
(ncall (length (cdr form))))
|
||||
;; Check many or unevalled from subr-arity.
|
||||
(if (and (cdr-safe sig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue