GNU bug report logs - #12300
24.2.50; Unused lexical argument warning

Previous Next

Package: emacs;

Reported by: Ivan Kanis <ivan.kanis <at> googlemail.com>

Date: Wed, 29 Aug 2012 05:33:01 UTC

Severity: normal

Found in version 24.2.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Ivan Kanis <ivan.kanis <at> googlemail.com>
Cc: 12300 <at> debbugs.gnu.org
Subject: Re: bug#12300: 24.2.50; Unused lexical argument warning
Date: Wed, 29 Aug 2012 09:08:17 +0200
Ivan Kanis <ivan.kanis <at> googlemail.com> writes:

> I think there should not be any warning if a function argument is not
> used. I cannot change the function prototype for a process filter.

*Note (elisp) Using Lexical Binding::
   (To silence byte-compiler warnings about unused variables, just use
a variable name that start with an underscore.  The byte-compiler
interprets this as an indication that this is a variable known not to
be used.)

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

Previous Next


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