Commit a67cc630 authored by Alan Mackenzie's avatar Alan Mackenzie

Byte compile: Output an error, not a warning, for odd number of args to setq

* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
parent cb1bd349
......@@ -3713,9 +3713,9 @@ discarding."
(if args
(while args
(if (eq (length args) 1)
(byte-compile-warn
"missing value for `%S' at end of setq"
(car args)))
(byte-compile-log-warning
(format "missing value for `%S' at end of setq" (car args))
nil :error))
(byte-compile-form (car (cdr args)))
(or byte-compile--for-effect (cdr (cdr args))
(byte-compile-out 'byte-dup 0))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment