GNU bug report logs -
#18014
24.3; Unused Lexical argument warning, when argument is used in a function...
Previous Next
Reported by: Matthew Fidler <matthew.fidler <at> gmail.com>
Date: Mon, 14 Jul 2014 12:27:01 UTC
Severity: minor
Tags: notabug
Found in version 24.3
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 18014 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
---------- Forwarded message ----------
From: Matthew Fidler <matthew.fidler <at> gmail.com>
Date: Mon, Jul 14, 2014 at 9:57 AM
Subject: Re: bug#18014: 24.3; Unused Lexical argument warning, when
argument is used in a function...
To: Eli Zaretskii <eliz <at> gnu.org>
Its the beginning of the function in the bug report.
https://github.com/ergoemacs/ergoemacs-mode/blob/7a30c03b59eab2b720c16f6cd8099c499fec1cc2/ergoemacs-translate.el#L695
On Mon, Jul 14, 2014 at 9:47 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Mon, 14 Jul 2014 07:25:56 -0500
> > From: Matthew Fidler <matthew.fidler <at> gmail.com>
> >
> > I'm getting a warning for ergoemacs-translate:
> >
> > Compiling file
> > e:/EmacsPortable.App/Data/src/ergoemacs-mode/ergoemacs-translate.el at
> Mon
> > Jul 14 07:17:14 2014
> > ergoemacs-translate.el:695:1:Warning: Unused lexical argument `key'
> >
> > I do use the argument key to calculate the translation, but the compiler
> > claims I am not. I'm not sure if it is a bug in the warning or a bug in
> > my code. For now, I can change key to _key to ignore the warning, but I
> > do think that this is an invalid warning.
> >
> > Here is the offending function:
>
> And which one is the offending line 695, please?
>
[Message part 2 (text/html, inline)]
This bug report was last modified 9 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.