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

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

bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tr


From: Stefan Monnier
Subject: bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create
Date: Tue, 10 Sep 2013 17:08:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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





reply via email to

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