unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 12369@debbugs.gnu.org
Subject: bug#12369: 24.2.50; cl-loop: variable not left unused
Date: Sat, 05 Jun 2021 16:08:40 -0400	[thread overview]
Message-ID: <jwv5yysw005.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zgwacat6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Jun 2021 09:18:29 +0200")

>>>     ;; -*- 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






      reply	other threads:[~2021-06-05 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 13:06 bug#12369: 24.2.50; cl-loop: variable not left unused Christopher Schmidt
2012-09-06 15:43 ` Stefan Monnier
2021-06-01  7:18   ` Lars Ingebrigtsen
2021-06-05 20:08     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv5yysw005.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=12369@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).