Subject: 24.3.50; Wrong byte compiler warning
From: Michael Albinus <[email-masked]>
To: [email-masked]
Date: Thu, 15 Aug 2013 13:49:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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.