Subject: bug#28107: 26.0.50; Byte compilation shows an unused var warning for an used variable

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 12 Jun 2019 17:03:45 +0200

Glenn Morris <[email-masked]> writes:

> Tino Calancha wrote:
>
>> ;; -*- lexical-binding: t; -*-
>> (let ((x 1))
>>   (and (equal (+ x 2) 3)))
>
> This code also does nothing. Compare with:
>
> (defun foo ()
>   (let ((x 1))
>    (and (equal (+ x 2) 3))))
>
> where the result is used (as the function return) and there is no warning.

So I don't think there's a bug here, and I'm closing this bug report.

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