GNU bug report logs - #15103
Spurious "unused lexical argument" warning from condition-case

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Thu, 15 Aug 2013 11:51:01 UTC

Severity: minor

Merged with 20123

Found in versions 24.3.50, 24.4.91

Fixed in version 25.1

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 15103 <at> debbugs.gnu.org
Subject: bug#15103: 24.3.50; Wrong byte compiler warning
Date: Thu, 03 Oct 2013 23:41:50 -0400
> I have a file test.el:
> (condition-case err
>     (ignore)
>   (file-error (ignore))
>   (error (message "%s" (error-message-string err))))
[...]
> In toplevel form:
> test.el:1:1:Warning: Unused lexical argument `err'
> Wrote /home/albinus/tmp/test.elc

If you set byte-compile--use-old-handlers to nil, the above spurious
warning should now be fixed.


        Stefan




This bug report was last modified 10 years and 71 days ago.

Previous Next


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