Subject: Re: bug#39919: 26.3; Incorrect byte-compiler warning

From: Mike Woolley <[email-masked]>
Date: Thu, 5 Mar 2020 14:01:28 +0000

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.

Thanks,
Mike

> On 5 Mar 2020, at 13:50, Michael Heerdegen <[email-masked]> wrote:
> 
> Mike Woolley <[email-masked]> 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.