GNU bug report logs - #21963
Spurious byte compile message: "Warning: the function `bar' might not be defined at runtime."

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 20 Nov 2015 10:50:03 UTC

Severity: minor

Fixed in version 25.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 21963 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: John Wiegley <jwiegley <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>,
 21963 <at> debbugs.gnu.org
Subject: Re: bug#21963: Spurious byte compile message: "Warning: the function
 `bar' might not be defined at runtime."
Date: Mon, 30 Sep 2019 18:22:27 +0000
Hello, Stefan.

On Sun, Sep 29, 2019 at 23:24:29 +0200, Stefan Kangas wrote:
> Alan Mackenzie <acm <at> muc.de> writes:

> > On Fri, Nov 20, 2015 at 08:44:56AM -0800, John Wiegley wrote:
> >> >>>>> Alan Mackenzie <acm <at> muc.de> writes:

> >> > While eval-when-compile'ing the first line, the byte compiler collects a
> >> > list of symbols defined by it (in variable
> >> > byte-compile-noruntime-functions). More or less.

> >> > There is no mechanism for taking symbols off of that list when they
> >> > subsequently become defined.

> >> Not optimal, but I must ask: Should it be fixed? Or, for now, simply noted in
> >> the elisp manual when discussing the merits of this warning?

> > I think it should be fixed.  It will eliminate warnings from CC Mode (at
> > the very least).

> > I am working on it as we speak.  I expect to produce a patch for review
> > soon.

> Hi Alan,

> That was four years ago.  Did you finish the patch which would resolve
> this issue?

Yes, I did indeed; with this patch:

acb96f2718ccb0d36af514ce63b5decf0f24a697
Squashed commit of the following: .....
Tue Nov 24 17:37:49 2015 +0000

Sorry I forgot to close the bug.

> Best regards,
> Stefan Kangas

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 5 years and 237 days ago.

Previous Next


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