GNU bug report logs - #15327
24.3; Incorrect "Unused lexical variable" warning with avl-tree-create

Previous Next

Package: emacs;

Reported by: Christopher Wellons <wellons <at> nullprogram.com>

Date: Tue, 10 Sep 2013 18:36:01 UTC

Severity: normal

Found in version 24.3

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Christopher Wellons <wellons <at> nullprogram.com>
To: 15327 <at> debbugs.gnu.org
Subject: bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create
Date: Tue, 10 Sep 2013 14:40:32 -0400
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<)))




This bug report was last modified 11 years and 253 days ago.

Previous Next


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