From: Helmut Eller <eller.helmut@gmail.com>
To: 16771@debbugs.gnu.org
Subject: bug#16771: 24.3.50; pcase generates irritating warnings
Date: Sun, 16 Feb 2014 21:32:58 +0100 [thread overview]
Message-ID: <m238jiiyrp.fsf@gmail.com> (raw)
Compiling this example:
;; -*-lexical-binding:t-*-
(eval-when-compile
(require 'pcase))
(defun foo (x)
(pcase x
((and `(,sym)
(guard (symbolp sym)))
t)))
with emacs -batch -f batch-byte-compile foo.el produces this output:
In toplevel form:
foo.el:5:1:Warning: Unused lexical variable `sym'
Wrote /tmp/foo.elc
This warning is annoying as sym is obviously used in the guard
expression and replacing sym with _sym also doesn't help because that
produces
foo.el:5:1:Warning: variable `_sym' not left unused
In GNU Emacs 24.3.50.6 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2014-02-14 on ix
next reply other threads:[~2014-02-16 20:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 20:32 Helmut Eller [this message]
2014-02-17 3:27 ` bug#16771: 24.3.50; pcase generates irritating warnings Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m238jiiyrp.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=16771@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.