GNU bug report logs -
#26486
25.1.91; unused var warning from cconv.el can't be suppressed
Previous Next
Reported by: John Williams <jrw <at> pobox.com>
Date: Thu, 13 Apr 2017 19:13:01 UTC
Severity: minor
Tags: confirmed, moreinfo, patch
Found in versions 28.0.50, 25.1.91
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at control <at> debbugs.gnu.org (full text, mbox):
retitle 26486 25.1.91; unused var warning from cconv.el can't be suppressed
severity 26486 minor
tag 26486 confirmed
quit
On Thu, Apr 13, 2017 at 2:59 PM, John Williams <jrw <at> pobox.com> wrote:
> When I byte compile a file where a macro expansion introduces an unused
> lexical veriable, I get warnings from cconv.el, even if I wrap the
> expansion in (with-no-warnings) and set byte-compile-warnings to nil.
> IMHO warnings of this type should never be issued for code that comes
> from a macro expansion, but it should at least be possible to suppress
> them with the usual mechanisms. Here's a file that demonstrates the
> problem when it's compiled with byte-compile-file:
>
> ========================================================================
> ;; -*- lexical-binding: t; byte-compile-warnings: nil -*-
>
> (defmacro test ()
> `(let (unused)))
>
> (with-no-warnings
> (test))
> ========================================================================
This happens also without a macro.
;; -*- lexical-binding: t; byte-compile-warnings: nil -*-
(with-no-warnings (let (unused)))
This bug report was last modified 4 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.