GNU bug report logs - #25558
Spurious warnings with variables mentioned only pcase guard patterns

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sat, 28 Jan 2017 00:16:02 UTC

Severity: minor

Tags: confirmed

Merged with 16771, 27545

Found in versions 24.3.50, 25.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
Cc: 25558 <at> debbugs.gnu.org
Subject: bug#25558: Spurious warnings with variables mentioned only pcase guard patterns
Date: Fri, 27 Jan 2017 19:24:41 -0500
forcemerge 16771 25558
quit

Clément Pit--Claudel <clement.pitclaudel <at> 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.




This bug report was last modified 3 years and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.