|
From: | Jean Louis |
Subject: | Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'? |
Date: | Fri, 8 Jan 2021 04:04:57 +0300 |
User-agent: | Mutt/2.0 (3d08634) (2020-11-07) |
* Drew Adams <drew.adams@oracle.com> [2021-01-07 19:06]: > [Forwarding to the list - forgot to explicitly add it again...] > > > What about fixing the byte-compiler so it won't warn a > > used variable is unused? :) > > Yes. To which I expect the reply "Patch welcome". ;-) > > The same inappropriate compiler warning is issued for > dotimes and cl-dotimes (the Common Lisp emulation). > > Emacs Lisp has decided that use of the RETURN arg is > "deprecated" - even for the CL emulation, cl-dotimes. What we talk is return value in third place of `(dolist (first second third))' and it is strange that if return value is asked from `dolist' that then the `first' one is warned about.
[Prev in Thread] | Current Thread | [Next in Thread] |