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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Spurious warnings with variables mentioned only pcase guard patterns
Date: Fri, 27 Jan 2017 19:14:54 -0500
[Message part 1 (text/plain, inline)]
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').

[signature.asc (application/pgp-signature, attachment)]

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

Previous Next


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