From: "Ludovic Courtès" <ludo@gnu.org>
To: 47031@debbugs.gnu.org
Subject: bug#47031: False positives for ‘-Wunbound-variable’ in 3.0.5
Date: Tue, 09 Mar 2021 23:18:19 +0100 [thread overview]
Message-ID: <87im606kes.fsf@inria.fr> (raw)
The new ‘unbound-variable’ warning in 3.0.5 has false positives, as in
this example:
--8<---------------cut here---------------start------------->8---
$ cat /tmp/unbound.scm
(use-modules (srfi srfi-35))
(condition (&message (message "oh no!"))
(&serious))
$ guild compile -Wunbound-variable /tmp/unbound.scm
/tmp/unbound.scm:3:0: warning: possibly unbound variable `make-compound-condition'
wrote `/home/ludo/.cache/guile/ccache/3.0-LE-8-4.4/tmp/unbound.scm.go'
$ guild --version
guild (GNU Guile) 3.0.5
Copyright (C) 2021 Free Software Foundation, Inc.
License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--8<---------------cut here---------------end--------------->8---
3.0.4 and earlier versions are fine.
Ludo’.
next reply other threads:[~2021-03-09 22:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 22:18 Ludovic Courtès [this message]
2021-05-01 20:34 ` bug#47031: False positives for ‘-Wunbound-variable’ in 3.0.5 Ludovic Courtès
2021-05-01 23:26 ` Ludovic Courtès
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im606kes.fsf@inria.fr \
--to=ludo@gnu.org \
--cc=47031@debbugs.gnu.org \
/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.
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).