From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning Date: Fri, 12 Mar 2021 04:07:47 +0100 Message-ID: <87lfatul18.fsf@gnus.org> References: <87tuph6xvl.fsf@web.de> <875z1xz0d6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Heerdegen , 47080@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 04:09:07 2021 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 1lKYAl-0002JH-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 04:09:07 +0100 Original-Received: from localhost ([::1]:51952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKYAk-000836-Qw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 22:09:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKYAg-00082W-06 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 22:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKYAf-0000l3-OR for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 22:09:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKYAf-0006px-Jh for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 22:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 03:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47080 X-GNU-PR-Package: emacs Original-Received: via spool by 47080-submit@debbugs.gnu.org id=B47080.161551848726220 (code B ref 47080); Fri, 12 Mar 2021 03:09:01 +0000 Original-Received: (at 47080) by debbugs.gnu.org; 12 Mar 2021 03:08:07 +0000 Original-Received: from localhost ([127.0.0.1]:55748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKY9n-0006oq-H1 for submit@debbugs.gnu.org; Thu, 11 Mar 2021 22:08:07 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKY9l-0006oJ-MR for 47080@debbugs.gnu.org; Thu, 11 Mar 2021 22:08:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1LzsBrNeZ57Se4F80U/rf1fpxGKPqk4cWX6KbOhi7Y0=; b=dkUaE/Odj6tGmfb5LTMYplagEe tYHAY+G4dUnx4p0nCaU1mQNaj5c91CDJpgwOLVv8ZJbl66QnZu3keQzG5tirpvjOTmK8fsm47h5sW kwalo2VDp0RfexGDHYeJ25jTsedeNkI+fTWdW6kAx2CxC8+NlV1Qyz4hGAysclFCcM/0=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKY9U-00086Z-No; Fri, 12 Mar 2021 04:07:58 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEV9fmOGhYlNTUx2 dhCCgRWAfhOvx8b///8EnAsbAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UDDAMGEM6A7EIAAAGsSURB VDjLdZJbkuMgDEUFU9XfwArgUvnvQbCBuLKBxux/KyORdAd73DeOLesg9MBkvDfOeSJ5+pfUICIn f0PfcvNuPM0lbl4Hkf9FJ2CugfPJmUvgUkhnEGRpoPg/sEnhNSDnL4GBDMBegATyFJJbgCN4GyPB 2JDgfZLCBQQbIqyFNYgKjOwJI8BCZRGD3G2SLAEhkXn6nwyEiBiD/Cj++KMToMtSEJPE8Q0wwXwo sO+9NMcE0QqQamf4M0pDnKYjyEHOvFN/vdcKgKo5DBcx+RMxi5G5yHiYPmFj+xLQFELBV/xwmQpY lDtzUYPnq6SixvvG3Iaodx5D/bIK1LDd1N9H51XEKFm8U4t/UJVCtvryt5+wRnwH7vmhCVYJkALv eJTGJ6A9F9Ryk4i2gj9zFBXo7RBEPSNDr8oNC5IGc9aJ4MYV2wr2nFGkhMZ1rYC4yqTKXtB6le0W 0HYBTWZZ8glIx5v0v8lWBzAnqifSdpzB4L4h93KsSme+j54fteQDGC/1VnK/AkNa3d7jojEW0uex vpIvQOu7Alpee4N3Ejl5Hoc+nh9P4/Vz+AcsorMXoWMPvwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy MS0wMy0xMlQwMzowNjoxNSswMDowMJaiWQsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDMtMTJU MDM6MDY6MTUrMDA6MDDn/+G3AAAAAElFTkSuQmCC X-Now-Playing: Joni Mitchell's _The Hissing Of Summer Lawns_: "Edith And The Kingpin" In-Reply-To: (Stefan Monnier's message of "Thu, 11 Mar 2021 21:58:51 -0500") 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:202134 Archived-At: Stefan Monnier writes: > Indeed, it's a useless binding: you could just use nil instead wherever > you use that var, so the warning is working as intended. And indeed, it > found a few places where we bound a var to nil and then just > returned its value (and it's thanks to this warning that I discovered > that those var needed to be declared as dynamically scoped). Oh, is that what the warning means. :-) It's not immediately obvious -- could it be changed to something like... er... "Variable bound to constant value and not changed"? > But the above `pcase` and `syntax-propertize-rules` show that it can be > quite inconvenient. I can probably fix `pcase` to work around the > issue, but ... it's probably better to tone down the warning so it's > only issued if the nil binding is implicit rather than explicit. Right. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no