From: Richard M. Stallman Date: Wed, 16 Nov 2005 22:20:03 +0000 (+0000) Subject: (byte-optimize-form-code-walker): Improve warning message text. X-Git-Tag: emacs-pretest-22.0.90~5832 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d8684ddf308d01abb226e0ef66a0d46578818ac;p=emacs.git (byte-optimize-form-code-walker): Improve warning message text. --- diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 8711a05e2d9..b46366a94b9 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -545,7 +545,7 @@ (eq (car-safe (nth 2 last)) 'cdr) (eq (cadr (nth 2 last)) var)))) (progn - (byte-compile-warn "`%s' called for effect" + (byte-compile-warn "value returned by `%s' is not used" (prin1-to-string (car form))) nil))) (byte-compile-log " %s called for effect; deleted" fn)