From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15327: 24.3; Incorrect "Unused lexical variable" warning with avl-tree-create Date: Tue, 10 Sep 2013 17:08:03 -0400 Message-ID: References: <877geotthn.fsf@wellocc1-ld1.jhuapl.edu> <874n9stt9b.fsf@wellocc1-ld1.jhuapl.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378847359 30811 80.91.229.3 (10 Sep 2013 21:09:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 21:09:19 +0000 (UTC) Cc: 15327@debbugs.gnu.org To: Christopher Wellons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 10 23:09:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJVBY-0004AW-3y for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2013 23:09:20 +0200 Original-Received: from localhost ([::1]:59987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVBX-00061X-L2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2013 17:09:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVBO-00061C-0E for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 17:09:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJVBG-0005K7-AG for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 17:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVBG-0005K2-6Q for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 17:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VJVBF-0006Xk-Sr for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2013 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15327 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15327-submit@debbugs.gnu.org id=B15327.137884728825081 (code B ref 15327); Tue, 10 Sep 2013 21:09:01 +0000 Original-Received: (at 15327) by debbugs.gnu.org; 10 Sep 2013 21:08:08 +0000 Original-Received: from localhost ([127.0.0.1]:53415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJVAN-0006WR-7g for submit@debbugs.gnu.org; Tue, 10 Sep 2013 17:08:07 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36963) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJVAK-0006WG-Qx for 15327@debbugs.gnu.org; Tue, 10 Sep 2013 17:08:05 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8AL83mX020226; Tue, 10 Sep 2013 17:08:03 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 6FC0DB40D6; Tue, 10 Sep 2013 17:08:03 -0400 (EDT) In-Reply-To: <874n9stt9b.fsf@wellocc1-ld1.jhuapl.edu> (Christopher Wellons's message of "Tue, 10 Sep 2013 14:40:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4697=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4697> : inlines <79> : streams <1035109> : uri <1533005> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78197 Archived-At: > 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