[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11928: Spurious bytecomp warning "reference to free variable" when v
From: |
Glenn Morris |
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 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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.