* bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create
@ 2013-09-10 18:35 Christopher Wellons
2013-09-10 18:40 ` Christopher Wellons
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Wellons @ 2013-09-10 18:35 UTC (permalink / raw)
To: 15327
;;; -*- lexical-binding: t; -*-
(require 'avl-tree)
(avl-tree-create #'string<)
In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2)
of 2013-06-25 on sochi, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description: Debian GNU/Linux unstable (sid)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create
2013-09-10 18:35 bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create Christopher Wellons
@ 2013-09-10 18:40 ` Christopher Wellons
2013-09-10 21:08 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Wellons @ 2013-09-10 18:40 UTC (permalink / raw)
To: 15327
Sorry, I accidentally hit send early. If the above is compiled,
$ emacs -Q -batch -f batch-byte-compile tmp.el
In toplevel form:
tmp.el:3:1:Warning: Unused lexical variable `cmpfun'
Wrote /tmp/tmp.elc
Due to improper macro expansion of avl-tree-create by defstruct,
(let
((cmpfun #'string<))
(progn
(vector 'cl-struct-avl-tree-
(progn
(vector nil nil nil 0))
#'string<)))
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create
2013-09-10 18:40 ` Christopher Wellons
@ 2013-09-10 21:08 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2013-09-10 21:08 UTC (permalink / raw)
To: Christopher Wellons; +Cc: 15327
> Sorry, I accidentally hit send early. If the above is compiled,
> $ emacs -Q -batch -f batch-byte-compile tmp.el
> In toplevel form:
> tmp.el:3:1:Warning: Unused lexical variable `cmpfun'
> Wrote /tmp/tmp.elc
> Due to improper macro expansion of avl-tree-create by defstruct,
> (let
> ((cmpfun #'string<))
> (progn
> (vector 'cl-struct-avl-tree-
> (progn
> (vector nil nil nil 0))
> #'string<)))
IIUC I fixed this recently in the trunk (the bug was in the expander
part of cl-defsubst).
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-10 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 18:35 bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create Christopher Wellons
2013-09-10 18:40 ` Christopher Wellons
2013-09-10 21:08 ` Stefan Monnier
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.