From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: suppressable byte compilation warnings and cconv.el Date: Thu, 14 Apr 2016 09:49:32 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1460620199 5113 80.91.229.3 (14 Apr 2016 07:49:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 07:49:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 09:49:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqc2C-0000M4-NI for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2016 09:49:52 +0200 Original-Received: from localhost ([::1]:34160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqc2B-0007Dt-Ve for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2016 03:49:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqc1t-00076Z-RX for emacs-devel@gnu.org; Thu, 14 Apr 2016 03:49:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqc1s-0007Uf-VT for emacs-devel@gnu.org; Thu, 14 Apr 2016 03:49:33 -0400 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:33170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqc1s-0007UU-Pg for emacs-devel@gnu.org; Thu, 14 Apr 2016 03:49:32 -0400 Original-Received: by mail-oi0-x22d.google.com with SMTP id w85so86268632oiw.0 for ; Thu, 14 Apr 2016 00:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=0EpzC8+nkZQyR5p0SXHct4mE+DERlRaUQrOzVwIkNGc=; b=CGaRsKzT52hLyTLkoA4sXdApfcM9DWDnPotiLWmROkXSKsCRLaltMdAFHMCvlWc6+C 7I/O3KQEOf2GgRFonbDTL89RWSrdBrFzVVMeEMXrNPHs1UVqLKExEpnvQ05Xxw41GC+5 MZGIKaIUj+KPrDj/obuGNbEv7uA2cgsVyEM6Zs+R+ANpOfxoXu3biMPMlDHkbL1r/qvW d/dhaQA3y7+fB3lUVVa+orl7hgLVZxoAD6t6i1n+ptrDWpKIZEi2DR3/RPCDsJteFYVB xD48RVbtKldxK5/eRF+vj3YbgHrZPrxFdnMA003XAegTKF/Oh1LFCKuXEElGNztKf8dr JTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=0EpzC8+nkZQyR5p0SXHct4mE+DERlRaUQrOzVwIkNGc=; b=bDxL22KYcGN6zjcetqFIQL6ra/KXKv0gV2KdRF/phJnSni81vYBZRtdQ8KnOJBqhbg 1r60GzdNV8U8SLz7XR1ac0EiMP+x4FvuDV3tjQa9mgj+2OpXZN/UNiN0v6Hyyg30IMDS X+n9fsiv8yB8sFEdDvOmCeVB7JZRkzgsHP87X0hGTrrLMwutSN6r0uzsq2GT561jdzpn +V9D49/Y1LvmBRKAWe4KCEHvLmwvwivW7mWXZoHl3WUKDPPJ3lOoLkH3ItWewP8sBx4M YugXirIi9GXa5L7YjTllOlswxdP8Xmta2UBStDiK3i38acteoP5DwaFthbOAlVP59I0x RqQA== X-Gm-Message-State: AOPr4FVuMfIjVprNO8U4zKLuO4AkTSZByGuZL7KyZDhwku1sEtlAeuhmXStUMV9xkl8K5JZB9bhyI2NpDs93DA== X-Received: by 10.157.24.103 with SMTP id t36mr6588515ott.101.1460620172171; Thu, 14 Apr 2016 00:49:32 -0700 (PDT) Original-Received: by 10.202.197.148 with HTTP; Thu, 14 Apr 2016 00:49:32 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:202898 Archived-At: > You can silence those (and yes, selectively this time) by prefixing the > variable name with an underscore, which makes it explicit that you know > the variable is not used. Yes, I know about that, but that means you have to go about each individual warning in every function. And remember to rename parameters by adding/removing underscore when usage inside the function changes. I'd like to also have the ability to silence all such warnings altogether. Paul On 14 April 2016 at 03:35, Stefan Monnier wrote: >> In file `bytecomp.el' there is a customizable variable >> `byte-compile-warnings' that allows one to selectively silence certain >> warnings. > > I wouldn't use the word "selectively" to describe it. > It's extremely coarse only allowing you to control broad categories of > errors file-wide. > >> In particular, I'm annoyed by warnings like this: >> Warning: Unused lexical argument =E2=80=98size=E2=80=99 > > You can silence those (and yes, selectively this time) by prefixing the > variable name with an underscore, which makes it explicit that you know > the variable is not used. > > > Stefan > >