From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#41287: 28.0.50; Spurious warning "Unused lexical" Date: Fri, 15 May 2020 16:07:55 +0200 Message-ID: References: <87h7whia8q.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="116148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41287@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 16:09:10 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 1jZb1S-000U4P-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 16:09:10 +0200 Original-Received: from localhost ([::1]:50794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZb1R-0003hN-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 10:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZb1K-0003fi-Dq for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 10:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZb1K-0000gg-4q for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 10:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZb1J-0005d7-V4 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 10:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41287 X-GNU-PR-Package: emacs Original-Received: via spool by 41287-submit@debbugs.gnu.org id=B41287.158955169521560 (code B ref 41287); Fri, 15 May 2020 14:09:01 +0000 Original-Received: (at 41287) by debbugs.gnu.org; 15 May 2020 14:08:15 +0000 Original-Received: from localhost ([127.0.0.1]:38231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZb0Z-0005bg-BE for submit@debbugs.gnu.org; Fri, 15 May 2020 10:08:15 -0400 Original-Received: from mail-ot1-f45.google.com ([209.85.210.45]:32972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZb0X-0005bO-H2 for 41287@debbugs.gnu.org; Fri, 15 May 2020 10:08:13 -0400 Original-Received: by mail-ot1-f45.google.com with SMTP id v17so2001417ote.0 for <41287@debbugs.gnu.org>; Fri, 15 May 2020 07:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Pi33AHst3YyHQL0tiGiq2ii+SzDS5Fjvx8BJhcIGs0w=; b=cAjrJq8uP2yT/3KH1ryXOpgQxk20a04QLBEsGxZNqBp70mgBc8FF7dDHxi4adEHNfJ SA8U4+fpDUU2RGFiMBp707/6qtmQ64HccxjP7uvXMmCCJ/XF9GJzUd1jJfK+V7Fyq9hl Yz1arVVfUE1TjRQxQYki+G5grvcqYnKfrz8Ux9R1NyTsR6R2UZvoudzOAQ192QvW+SDl Ed1NQOzwucX/cvOtxLPDnhrCMGSuCqQ+Ruy7fsKmimL664qxHjq+GTo8gmL7oH0OvbzV SGYC3Wcuk8i8z0rO+z2gBIczAPk8Q9sErXqQ/xhOTrfbrXjcaqdOF8/bo7ZpF174IndM UpFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Pi33AHst3YyHQL0tiGiq2ii+SzDS5Fjvx8BJhcIGs0w=; b=q+/5L8oMA2NDj982bs+gp7om53gXDEtM+Uuvo+9SDy36Llg7B32YfcpKhzvZvI7Twn BEq7zchZIuRTtZ6erJsK88P+sshi8ML6GSFGvSoh/GAC4Wvxalmde5xDyxSLEVjYDoK9 ogCKSOyt3aKME2K8TXrgNOUkuZzBjYCXMkcwn97KaLeGF+NdBnRovhxxZglLKXSQhe2M 6LDrdsWQs63yR27q6Ws3V3qBZfTYBZR3hJvAPbNQmBSngOqdQZVksBf5bnluiMzcvxlc dIIFlXo86KUik39Rbl2mmj1u4/+WJsFijhZUKF2akLpPztoV6Q5CH6MUFOMzXvGWU9Hv SNEg== X-Gm-Message-State: AOAM532BNhMWhv0TOLwDyzf7Rhz8KXDDlC6wH9rqqy6pIMPD2ZEdDUJf v8JZAfGDQhezq4OzwWLzSmy8DW0SFhn36NQ5Wm8= X-Google-Smtp-Source: ABdhPJwh3F8lmzy/N30Z21tRCE3OU0TM4QWUEBeqN6+meSUAQJVox/l3DSVrrqCmFd21eiXWyB664S2e3tf7p76QBo8= X-Received: by 2002:a9d:206b:: with SMTP id n98mr2384306ota.36.1589551686327; Fri, 15 May 2020 07:08:06 -0700 (PDT) In-Reply-To: <87h7whia8q.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:180333 Archived-At: Am Fr., 15. Mai 2020 um 15:45 Uhr schrieb Michael Albinus : > > > I have the following defun in tramp.el (my local repo) > > --8<---------------cut here---------------start------------->8--- > (defun tramp-get-signal-strings () > "Strings to return by `process-file' in case of signals." > ;; We use key nil for local connection properties. > (with-tramp-connection-property nil "signal-strings" > (let (result) > (if (and (stringp shell-file-name) (executable-find shell-file-name= )) > (dotimes (i 128 (reverse result)) > (push > (if (=3D i 19) 1 ;; SIGSTOP > (call-process > shell-file-name nil nil nil "-c" (format "kill -%d $$" i)= )) > result)) > (dotimes (i 128 (reverse result)) > (push (format "Signal %d" i) result)))))) > --8<---------------cut here---------------end--------------->8--- > > Compiling this, I get > > --8<---------------cut here---------------start------------->8--- > tramp.el:5065:1: Warning: Unused lexical variable =E2=80=98i=E2=80=99 > tramp.el:5065:1: Warning: Unused lexical variable =E2=80=98i=E2=80=99 > --8<---------------cut here---------------end--------------->8--- > > `i' is used in both `dotimes' loops. What does the compiler tell me? This is probably the same as Bug#39919. tl;dr: remove the result argument from the dotimes form.