From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 28107@debbugs.gnu.org, Tino Calancha <tino.calancha@gmail.com>
Subject: bug#28107: 26.0.50; Byte compilation shows an unused var warning for an used variable
Date: Wed, 12 Jun 2019 17:03:45 +0200 [thread overview]
Message-ID: <87muimvoa6.fsf@mouse.gnus.org> (raw)
In-Reply-To: <nwvallbqif.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 17 Aug 2017 21:42:32 -0400")
Glenn Morris <rgm@gnu.org> 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
prev parent reply other threads:[~2019-06-12 15:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 6:11 bug#28107: 26.0.50; Byte compilation shows an unused var warning for an used variable Tino Calancha
2017-08-17 16:39 ` Glenn Morris
2017-08-17 16:45 ` Glenn Morris
2017-08-17 17:32 ` Tino Calancha
2017-08-18 1:42 ` Glenn Morris
2019-06-12 15:03 ` Lars Ingebrigtsen [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muimvoa6.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=28107@debbugs.gnu.org \
--cc=rgm@gnu.org \
--cc=tino.calancha@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.