aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/byte-opt.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index dd7e042499c..61f7268adff 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -534,6 +534,7 @@
534 (eq tmp 'error-free) 534 (eq tmp 'error-free)
535 ;; Detect the expansion of (pop foo). 535 ;; Detect the expansion of (pop foo).
536 ;; There is no need to compile the call to `car' there. 536 ;; There is no need to compile the call to `car' there.
537 (progn (setq foo (list form fn)) nil)
537 (and (eq fn 'car) 538 (and (eq fn 'car)
538 (eq (car-safe (cadr form)) 'prog1) 539 (eq (car-safe (cadr form)) 'prog1)
539 (let ((var (cadr (cadr form))) 540 (let ((var (cadr (cadr form)))
@@ -545,8 +546,8 @@
545 (eq (car-safe (nth 2 last)) 'cdr) 546 (eq (car-safe (nth 2 last)) 'cdr)
546 (eq (cadr (nth 2 last)) var)))) 547 (eq (cadr (nth 2 last)) var))))
547 (progn 548 (progn
548 (byte-compile-warn "value returned by `%s' is not used" 549 (byte-compile-warn "value returned from %s is unused"
549 (prin1-to-string (car form))) 550 (prin1-to-string form))
550 nil))) 551 nil)))
551 (byte-compile-log " %s called for effect; deleted" fn) 552 (byte-compile-log " %s called for effect; deleted" fn)
552 ;; appending a nil here might not be necessary, but it can't hurt. 553 ;; appending a nil here might not be necessary, but it can't hurt.