emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15103: closed (Spurious "unused lexical argument"


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15103: closed (Spurious "unused lexical argument" warning from condition-case)
Date: Mon, 16 Mar 2015 20:23:04 +0000

Your message dated Mon, 16 Mar 2015 16:22:12 -0400
with message-id <address@hidden>
and subject line Re: bug#20123: 24.4.91; Unwarranted "Unused lexical argument" 
for condition-case
has caused the debbugs.gnu.org bug report #20123,
regarding Spurious "unused lexical argument" warning from condition-case
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20123: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20123
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Wrong byte compiler warning Date: Thu, 15 Aug 2013 13:49:38 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
I have a file test.el:

(condition-case err
    (ignore)
  (file-error (ignore))
  (error (message "%s" (error-message-string err))))

When I compile it with --eval '(setq byte-compile-force-lexical-warnings t)'
I get the byte compiler warning

In toplevel form:
test.el:1:1:Warning: Unused lexical argument `err'
Wrote /home/albinus/tmp/test.elc

Note, that this warning does not appear when the first condition-case
handler does not exist.

Best regards, Michael.



--- End Message ---
--- Begin Message --- Subject: Re: bug#20123: 24.4.91; Unwarranted "Unused lexical argument" for condition-case Date: Mon, 16 Mar 2015 16:22:12 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
Version: 25.1

> I can confirm that this is fixed in 25.1, thanks. Sorry for the noise.

Thanks,


        Stefan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]