Subject: bug#12369: 24.2.50; cl-loop: variable not left unused

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 01 Jun 2021 09:18:29 +0200

Stefan Monnier <[email-masked]> writes:

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

>> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no