GNU bug report logs - #39919
26.3; Incorrect byte-compiler warning

Previous Next

Package: emacs;

Reported by: Mike Woolley <mike <at> bulsara.com>

Date: Thu, 5 Mar 2020 00:02:02 UTC

Severity: minor

Merged with 16206, 31232, 41287

Found in versions 24.3, 26.3, 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Woolley <mike <at> bulsara.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 39919 <at> debbugs.gnu.org
Subject: bug#39919: 26.3; Incorrect byte-compiler warning
Date: Thu, 5 Mar 2020 14:01:28 +0000
[Message part 1 (text/plain, inline)]
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 <michael_heerdegen <at> web.de> wrote:
> 
> Mike Woolley <mike <at> 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.

[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.