GNU bug report logs - #15416
Unused lexical argument warnings not optimized away in featurep 'xemacs

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 19 Sep 2013 02:52:02 UTC

Severity: minor

Tags: wontfix

Found in version 24.3.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: Unused lexical argument warnings not optimized away in featurep
 'xemacs
Date: Wed, 18 Sep 2013 22:51:01 -0400
Package: emacs
Version: 24.3.50
Severity: minor

Byte-compiling this:

; -*- lexical-binding: t -*-
(if (featurep 'xemacs)
  (defun foo (blah)
   ))

gives:

foo.el:2:1:Warning: Unused lexical argument `blah'

I thought code inside "(if (featurep 'xemacs)" was supposed to be
optimized away by the compiler?




This bug report was last modified 11 years and 252 days ago.

Previous Next


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