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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: John Williams <jrw@HIDDEN>; Keywords: confirmed; dated Thu, 13 Apr 2017 19:13:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to '25.1.91; unused var warning from cconv.el can't be suppressed' from '25.1.91; spurious warnings from cconv.el' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 26486 <at> debbugs.gnu.org:


Received: (at 26486) by debbugs.gnu.org; 13 Apr 2017 19:28:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 13 15:28:29 2017
Received: from localhost ([127.0.0.1]:46046 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cykPt-0003iS-5G
	for submit <at> debbugs.gnu.org; Thu, 13 Apr 2017 15:28:29 -0400
Received: from mail-oi0-f53.google.com ([209.85.218.53]:33544)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1cykPr-0003i3-Ev
 for 26486 <at> debbugs.gnu.org; Thu, 13 Apr 2017 15:28:27 -0400
Received: by mail-oi0-f53.google.com with SMTP id b187so75810162oif.0
 for <26486 <at> debbugs.gnu.org>; Thu, 13 Apr 2017 12:28:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:sender:in-reply-to:references:from:date:message-id
 :subject:to:cc;
 bh=t+/jtSdcylGxQl/7oquTl9VEEhe6D7tDLx58I/nlca0=;
 b=tImsBReM855v9yMO+e1IT6JKf5ZIZlBPR08zdHk90U4x7NoZQbShiTs3afdxetOE2r
 2EEdMXZqD3buSaZ+2uiRaHwu8M/IMpiqxmZnGlwefyLVLevPbgV4wiwWEvc0NluOI33X
 yxaTrtv3S3n54KlnbulTUSV0h1qu1TLmfDn+B6xvFVLnpYS08nMYcaVg+s8gOFhKjDVT
 w55HqeHdPChofo8xVrokFRJaSjPrn4gdc+0pSq+fjdAP6ipWhlolp7/ZEjmHUvdJ6IBr
 SPEjnGFzNATzhmdQzS6X7XIs6+Ti/hZHIi/hMe6fwWOYIrdURc2VoX6X48kCte4p4qV7
 7PQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
 :date:message-id:subject:to:cc;
 bh=t+/jtSdcylGxQl/7oquTl9VEEhe6D7tDLx58I/nlca0=;
 b=HohL+KyUfDRX8o/iuWPxWwWqso3hr435Qg6A7mGWp09Rveq+g/RVimJdJziZTabsHZ
 x2t3nrk3D5TwpStyG/KGlI5IhBNdDhiHO0IB82dv683QQqCkJEWovTH9QUGBne/yXSNN
 0syCfidf1gS9EZYUZfa9YiCde9iVB1P3NoBo0TvXuSPjSKNuGXfdmgRpjOmwvEcngdqZ
 8+Xvxf0Fs7j+GDff1t+ZRSTosl8wUWdsDZ9m2OyVOdLeNpAfZki5cWLWoUXL2HfPKjDc
 Eo5WOinnaYwwa0OOeFdfeEYfKB5nlmmxhnCGkY7a0nAm3lhyhpR7mkgwFGnF+T7hguIy
 rOxg==
X-Gm-Message-State: AN3rC/7Rv9iT4KFaDFQz2b5x4YvCmEHkCM8RInb0HBd9Bd5m0uv4ykF9
 RRdSkOZiSU9hRsVRtLSHOQuHJI8l8Q==
X-Received: by 10.202.240.85 with SMTP id o82mr3083387oih.26.1492111701490;
 Thu, 13 Apr 2017 12:28:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.9.178 with HTTP; Thu, 13 Apr 2017 12:28:21 -0700 (PDT)
In-Reply-To: <CAEdRJLDnJ7Am0S+1xBdjTED50zs8c6Q3oZKdsiwO0He87Vazng@HIDDEN>
References: <CAEdRJLDnJ7Am0S+1xBdjTED50zs8c6Q3oZKdsiwO0He87Vazng@HIDDEN>
From: Noam Postavsky <npostavs@HIDDEN>
Date: Thu, 13 Apr 2017 15:28:21 -0400
X-Google-Sender-Auth: xP32OIBwGPDLAF1Chw0gMHR_4wg
Message-ID: <CAM-tV-8QzyxZ4vF5Xv6BkGtXFZX4QjFLxrh-RptcY5TgLKKFTQ@HIDDEN>
Subject: Re: bug#26486: 25.1.91; spurious warnings from cconv.el
To: John Williams <jrw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 26486
Cc: 26486 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.7 (/)

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@HIDDEN> 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)))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26486; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Apr 2017 19:12:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 13 15:12:07 2017
Received: from localhost ([127.0.0.1]:46023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cykA2-0001Vz-TR
	for submit <at> debbugs.gnu.org; Thu, 13 Apr 2017 15:12:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53957)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shponglespore@HIDDEN>) id 1cyjy1-0001CH-D7
 for submit <at> debbugs.gnu.org; Thu, 13 Apr 2017 14:59:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <shponglespore@HIDDEN>) id 1cyjxu-0007o8-Nw
 for submit <at> debbugs.gnu.org; Thu, 13 Apr 2017 14:59:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34573)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <shponglespore@HIDDEN>)
 id 1cyjxu-0007nu-Kh
 for submit <at> debbugs.gnu.org; Thu, 13 Apr 2017 14:59:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44894)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <shponglespore@HIDDEN>) id 1cyjxt-0008CE-3I
 for bug-gnu-emacs@HIDDEN; Thu, 13 Apr 2017 14:59:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <shponglespore@HIDDEN>) id 1cyjxr-0007lr-KD
 for bug-gnu-emacs@HIDDEN; Thu, 13 Apr 2017 14:59:33 -0400
Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:34337)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <shponglespore@HIDDEN>)
 id 1cyjxr-0007l5-BB
 for bug-gnu-emacs@HIDDEN; Thu, 13 Apr 2017 14:59:31 -0400
Received: by mail-pf0-x234.google.com with SMTP id c198so32320280pfc.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 13 Apr 2017 11:59:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:sender:from:date:message-id:subject:to;
 bh=JKznMpSeBppy1y4XymBWPICwQgT8vzExGCmUaD3A5K4=;
 b=YA88NepCFcRwQ9NK0xWt2JTvf5S4Nt22IRyVH1nz+OGTcs3FC/ixXso7crKkfCQmdo
 SXKLzxiIuxk+QfdMuLb/Pwly3DDQ5R/fhHeXg8LrkrNakno76G8Kfn+AW5n46Uax1TgK
 JyjuupCq09RVn/yF3OztrHveKTpdvcDTxVGdBUgq3kBZLb7L8V8loQGuTnJ2Hz5a3uwB
 4xvJmVgUL6YA1WEVPA+h+kV4PiFmAj47qt5OlXYQDtS2US3r0Yqsi/RxQ1WHKq5E56sA
 VR2sp1lNB2vuZaRg3DvcHfxvJz7vb9ySG+aa4JwrBYn8FlTDmdDjccg3E6fb6FXQqGrT
 eEMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:sender:from:date:message-id:subject
 :to; bh=JKznMpSeBppy1y4XymBWPICwQgT8vzExGCmUaD3A5K4=;
 b=IOpYwYl58KMYCjsFBR2Egkc/MXf2OPxz8cEL+sy8uom5RzaKKtxgXPgQCHcjL04idq
 3VxVRafLq1KhmXFEZrwI+rjDBcVzkvYsSRkACpRYUqrQixalfvH6GXR6NQBmW+A95HuS
 8qYSCat8035MEBn3Ewew74Ih9Srz/ikT1YKtgQ5aQcb7FWhcYgRflQTN5YkjGbIn00EW
 P95zY/Xd2a5rsZZZ8mSzcOdTgtVDMdhlph4Ih9oWvx4wNxsdnpJVzQ3gzRj5pwoZYFpy
 f/NQUAvWayqq7ECFNraIBL/38PBJ6pq/8DlOlqnuVDQkHYYNovVcLH2QoqEdlsS9v29J
 uOZA==
X-Gm-Message-State: AN3rC/7Tdz+rnL3CVnAda21JN8x/fxfpNb9LSvEwkAVsmwxCt3SZPlTJ
 4AXuB03Is8374SPmd8nN9VWjHQKHaBf0zt4=
X-Received: by 10.98.76.140 with SMTP id e12mr4134589pfj.128.1492109969276;
 Thu, 13 Apr 2017 11:59:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.154.144 with HTTP; Thu, 13 Apr 2017 11:59:08 -0700 (PDT)
From: John Williams <jrw@HIDDEN>
Date: Thu, 13 Apr 2017 11:59:08 -0700
X-Google-Sender-Auth: 98GN_KenCL_kCefyLNQ9OfkqZWw
Message-ID: <CAEdRJLDnJ7Am0S+1xBdjTED50zs8c6Q3oZKdsiwO0He87Vazng@HIDDEN>
Subject: 25.1.91; spurious warnings from cconv.el
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 13 Apr 2017 15:12:04 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

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))
========================================================================



In GNU Emacs 25.1.91.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8),
modified by Debian
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:     Ubuntu 14.04.5 LTS

Configured using:
 'configure --build x86_64-linux-gnu --build x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/google-emacs:/etc/emacs:/usr/local/share/emacs/25.1.91+gg1+2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1.91+gg1+2/site-lisp:/usr/share/emacs/site-lisp
 --with-crt-dir=/usr/lib/x86_64-linux-gnu --disable-build-details
 --disable-silent-rules --with-modules GOOGLE_VERSION=25.1.91+gg1+2
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 build_alias=x86_64-linux-gnu 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
 -Wl,-fuse-ld=gold,--export-dynamic-symbol=__google_auxv'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2 -DGOOGLE_EMACS_DEFINE_AUXV''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  diff-auto-refine-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
nil
Mark set
nil
Quit
Type "q" in help window to restore its previous buffer.
Undo! [22 times]
Saving file /usr/local/google/home/jrw/homedir/test.el...
Wrote /usr/local/google/home/jrw/homedir/test.el
Compiling /usr/local/google/home/jrw/homedir/test.el...done
Wrote /usr/local/google/home/jrw/homedir/test.elc
Quit

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils byte-opt
compile comint ansi-color ring warnings thingatpt help-fns bytecomp
byte-compile cl-extra help-mode cl-loaddefs pcase cl-lib cconv vc-git
diff-mode easymenu easy-mmode time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 105959 7747)
 (symbols 48 21355 0)
 (miscs 40 404 190)
 (strings 32 19965 4463)
 (string-bytes 1 608139)
 (vectors 16 14200)
 (vector-slots 8 469169 6038)
 (floats 8 184 167)
 (intervals 56 1103 0)
 (buffers 976 22)
 (heap 1024 30017 1036))




Acknowledgement sent to John Williams <jrw@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#26486; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Apr 2017 19:30:03 UTC

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