GNU bug report logs - #11928
Spurious bytecomp warning "reference to free variable" when variable defined in required library without an initvalue

Previous Next

Package: emacs;

Reported by: Michael Hoffman <fklv2wf02 <at> sneakemail.com>

Date: Fri, 13 Jul 2012 02:31:02 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Michael Hoffman <fklv2wf02 <at> sneakemail.com>
Cc: 11928 <at> debbugs.gnu.org
Subject: bug#11928: Spurious bytecomp warning "reference to free variable" when variable defined in required library without an initvalue
Date: Fri, 13 Jul 2012 02:21:55 -0400
Michael Hoffman wrote:

> outer.el:5:3:Warning: reference to free variable `inner-a'
> Wrote /net/noble/vol2/home/mmh1/src/experimental/bytecode2/outer.elc
> ====
>
> I expected there to be no warning, as there is no warning for the
> reference of inner-b, which has an initvalue (t).

defvar with no initvalue does not define the variable, it just silences
compilation warnings when the containing file is compiled. But inner.el
is not being compiled.




This bug report was last modified 12 years and 360 days ago.

Previous Next


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