[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FW: How to avoid compiler warning `unused lexical variable' for `dolist'
From: |
Drew Adams |
Subject: |
FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'? |
Date: |
Thu, 7 Jan 2021 16:05:56 +0000 (UTC) |
[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.
The compiler shouldn't issue this warning, IMO.
[The bug thread claims Common Lisp's allowing the
RETURN arg is a "misfeature".]
But is this faulty warning a big deal? No, not really.
Elisp byte-compiler warnings can be helpful. But they
can also often be noisy and sometimes wrong/misleading.
Warning about warnings: Caveat lector.
- How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Emanuel Berg, 2021/01/07
- Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Philipp Stephani, 2021/01/07
- Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Philipp Stephani, 2021/01/07
- Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Emanuel Berg, 2021/01/07
- FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?,
Drew Adams <=
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Stefan Monnier, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Emanuel Berg, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Stefan Monnier, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Jean Louis, 2021/01/07
- RE: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Drew Adams, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Stefan Monnier, 2021/01/07
- Re: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?, Emanuel Berg, 2021/01/07