help-gnu-emacs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]