[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unused lexical variable in `cl-loop'
From: |
Michael Heerdegen |
Subject: |
Re: unused lexical variable in `cl-loop' |
Date: |
Wed, 28 Sep 2022 12:58:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Emanuel Berg <incal@dataswamp.org> writes:
> (cl-loop for i from min to max
> with num = ()
> collect i into num
> finally return num) )
>
> ;; Warning: Unused lexical variable `num'
Seems the "with num = ()" clause is redundant, `cl-loop' does that
implicitly. Check with `macroexpand-1' with the `cl-loop' form.
Michael.