GNU bug report logs - #12369
24.2.50; cl-loop: variable not left unused

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Thu, 6 Sep 2012 13:16:02 UTC

Severity: minor

Tags: confirmed

Found in version 24.2.50

Full log


Message #16 received at 12369 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 12369 <at> debbugs.gnu.org
Subject: Re: bug#12369: 24.2.50; cl-loop: variable not left unused
Date: Sat, 05 Jun 2021 16:08:40 -0400
>>>     ;; -*- lexical-binding: t -*-
>>>     (require 'cl-lib)
>>>     (cl-loop for (rms . emacs) in nil)
>>> Byte compile this piece of code.
>>>     Warning: Unused lexical variable `rms'
>> Yes, first bug: `emacs' is not listed as unused.
> This problem is still present in Emacs 28.

Indeed, because it *is* used internally by the code expanded from the
destructuring-bind.

>>> Attempting to fix this warning by renaming rms to _rms results in
>>> another warning.
>>>     Warning: variable `_rms' not left unused
>> Yup, second bug.
> This one is fixed, though.

Hmm... I wonder what caused this change.


        Stefan





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

Previous Next


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