bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25558: Spurious warnings with variables mentioned only pcase guard p


From: npostavs
Subject: bug#25558: Spurious warnings with variables mentioned only pcase guard patterns
Date: Fri, 27 Jan 2017 19:24:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]