[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25558: Spurious warnings with variables mentioned only pcase guard p
From: |
Lars Ingebrigtsen |
Subject: |
bug#25558: Spurious warnings with variables mentioned only pcase guard patterns |
Date: |
Fri, 03 Sep 2021 10:49:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Yuri Khan <yuri.v.khan@gmail.com> writes:
> C-x C-f test.el RET
>
> ;; -*- lexical-binding: t -*-
>
> (defun foo (x)
> (pcase x
> ((and `(,bar ,baz)
> (guard (eq bar 'quux)))
> baz)))
>
> C-x C-s
> M-x byte-compile RET test.el RET
>
> Observed output:
>
> Compiling file /home/yuri/test.el at Sat Jul 1 16:27:36 2017
> test.el:3:1:Warning: Unused lexical variable ‘bar’
I can reproduce this in Emacs 26.1, but not in Emacs 28, so I'm guessing
that this is fixed, and I'm closing this bug report. If there's still
problems here, please respond to the debbugs address and we'll reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#25558: Spurious warnings with variables mentioned only pcase guard patterns,
Lars Ingebrigtsen <=