From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#39919: 26.3; Incorrect byte-compiler warning Date: Fri, 06 Mar 2020 23:23:02 -0500 Message-ID: References: <24319F54-ED52-478E-8247-25FA71F27F47@bulsara.com> <87imjihpws.fsf@web.de> <9EC3F872-B2C7-4CAE-8674-6D7EEB4E0AF5@bulsara.com> <87a74uholh.fsf@web.de> <871rq6h2ah.fsf@web.de> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="29403"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39919@debbugs.gnu.org, mike@bulsara.com To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 05:24:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAR0V-0007YN-UH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 05:24:11 +0100 Original-Received: from localhost ([::1]:45042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAR0V-0001za-0i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Mar 2020 23:24:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37466) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAR0N-0001zI-9G for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 23:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAR0M-0007PG-5l for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 23:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAR0M-0007PA-2v for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 23:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAR0L-0004l5-Vo for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 23:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2020 04:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39919 X-GNU-PR-Package: emacs Original-Received: via spool by 39919-submit@debbugs.gnu.org id=B39919.158355499118228 (code B ref 39919); Sat, 07 Mar 2020 04:24:01 +0000 Original-Received: (at 39919) by debbugs.gnu.org; 7 Mar 2020 04:23:11 +0000 Original-Received: from localhost ([127.0.0.1]:46127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAQzX-0004jw-FL for submit@debbugs.gnu.org; Fri, 06 Mar 2020 23:23:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAQzW-0004jP-Hb for 39919@debbugs.gnu.org; Fri, 06 Mar 2020 23:23:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAQzQ-0004Ye-R9; Fri, 06 Mar 2020 23:23:04 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jAQzO-000158-Tk; Fri, 06 Mar 2020 23:23:03 -0500 In-Reply-To: <871rq6h2ah.fsf@web.de> (message from Michael Heerdegen on Thu, 05 Mar 2020 23:20:22 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176987 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Hmm, no, actually, there were already two old bug reports about this > issue: bug#16206 and 31232. The RESULT argument of `dotimes' had been > deprecated as a result of that discussion. I can't easily obtain that discussion. Perhaps that discussion turned up some other reason to deprecated that argument. But if it was solely to avoid these warnings, I am surprised it is hard. Does this patch fix the problem? diff -u /home/rms/emacs-git/build-oct-2/lisp/subr.el.\~1\~ /home/rms/emacs-git/build-oct-2/lisp/subr.el --- /home/rms/emacs-git/build-oct-2/lisp/subr.el.~1~ 2019-10-02 11:07:09.046065358 -0400 +++ /home/rms/emacs-git/build-oct-2/lisp/subr.el 2020-03-06 19:31:20.053693281 -0500 @@ -281,7 +281,7 @@ (setq ,counter (1+ ,counter))) ,@(if (cddr spec) ;; FIXME: This let often leads to "unused var" warnings. - `((let ((,(car spec) ,counter)) ,@(cddr spec)))))) + `((let ((,(car spec) ,counter)) ,(car spec) ,@(cddr spec)))))) `(let ((,temp ,end) (,(car spec) ,start)) (while (< ,(car spec) ,temp) Diff finished. Fri Mar 6 19:34:23 2020 -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)