Yes this was pointed out to me :-)
Looks like we get the unused variable warning when there is a result form which does not contain the loop variable.
[I guess the normal use case would indeed be to use the loop var in the result form and so writing it like this was probably a reasonable compromise…]
I will adjust my code to work around it.
Mike Woolley <
mike@bulsara.com> writes:
This would seem like a bug to me.
Yes, the warning is wrong. There is already a corresponding "FIXME" in
the source:
| ;; FIXME: This let often leads to "unused var" warnings.
Michael.