GNU bug report logs - #26486
25.1.91; unused var warning from cconv.el can't be suppressed

Previous Next

Package: emacs;

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 #34 received at 26486 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: John Williams <jrw <at> pobox.com>, 26486 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> IRO.UMontreal.CA>,
 Noam Postavsky <npostavs <at> users.sourceforge.net>
Subject: Re: bug#26486: 25.1.91; unused var warning from cconv.el can't be
 suppressed
Date: Tue, 06 Jul 2021 20:53:52 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Noam Postavsky <npostavs <at> users.sourceforge.net> writes:
>
>> This happens also without a macro.
>>
>> ;; -*- lexical-binding: t; byte-compile-warnings: nil  -*-
>> (with-no-warnings (let (unused)))
>
> This currently gives a warning about both an unused variable and an
> empty let body.
>
> The following seemingly straightforward patch fixes both these things,
> I'd appreciate it if somebody had a look over it first, though.  :-)
> (So Stefan M added to the CCs.)

I suspect this patch causes the following:

$ cat foo.el
;;; foo.el --- foo -*- lexical-binding: t -*-
(let ())
;;; foo.el ends here
$ emacs -Q -script foo.el
Eager macro-expansion failure: (void-function byte-compile-warning-enabled-p)

Thanks,

-- 
Basil




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.