From: npostavs@users.sourceforge.net
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
Cc: 25558@debbugs.gnu.org
Subject: bug#25558: Spurious warnings with variables mentioned only pcase guard patterns
Date: Fri, 27 Jan 2017 19:24:41 -0500 [thread overview]
Message-ID: <87vat0rpyu.fsf@users.sourceforge.net> (raw)
In-Reply-To: <bf1de76c-d460-423d-9db6-cbae4083dcea@live.com> ("Clément Pit--Claudel"'s message of "Fri, 27 Jan 2017 19:14:54 -0500")
forcemerge 16771 25558
quit
Clément Pit--Claudel <clement.pitclaudel@live.com> writes:
> The following causes a warning (unused variable 'b'):
>
> (pcase '(1 2) ((and `(,a ,b) (guard (equal a b))) a))
>
> This is due to pcase let-binding 'a' twice; once around the guard test ('(equal a b)'), and once around the body ('a').
This was reported as #16771. It seems difficult to fix, unfortunately.
next prev parent reply other threads:[~2017-01-28 0:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-28 0:14 bug#25558: Spurious warnings with variables mentioned only pcase guard patterns Clément Pit--Claudel
2017-01-28 0:24 ` npostavs [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-07-01 10:01 bug#27545: 25.1; Unused lexical variable when byte-compiling pcase with guards Yuri Khan
2021-09-03 8:49 ` bug#25558: Spurious warnings with variables mentioned only pcase guard patterns Lars Ingebrigtsen
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=87vat0rpyu.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=25558@debbugs.gnu.org \
--cc=clement.pitclaudel@live.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 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).