GNU bug report logs - #75997
(ice-9 match): warning: unused variable `failure'

Previous Next

Package: guile;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sat, 1 Feb 2025 20:09:01 UTC

Severity: normal

Full log


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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tomas Volf <~@wolfsden.cz>
Cc: 75997 <at> debbugs.gnu.org
Subject: Re: bug#75997: (ice-9 match): warning: unused variable `failure'
Date: Wed, 26 Feb 2025 16:09:33 +0100
Tomas Volf <~@wolfsden.cz> skribis:

> (lambda (expr)
>   (let* ((v expr)
>          (failure
>            (lambda ()
>              ((@@ (ice-9 match) throw)
>               'match-error
>               "match"
>               "no matching pattern"
>               v)
>              #f)))
>     #f))

Hi!  Currently the unused-variable warning pass is unable to determine
that ‘failure’ was introduced by expanding a macro and thus that no
warning should be emitted.

It’s always been this way and I don’t know of a clear way to fix it.

Ludo’.




This bug report was last modified 110 days ago.

Previous Next


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