Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohw2Y-0005vg-QM for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2022 16:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ohw2X-0001wb-K5 for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2022 16:54:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohw2X-0001wR-Aa for pgsql-hackers@lists.postgresql.org; Mon, 10 Oct 2022 16:54:05 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohw2U-0007nm-JQ; Mon, 10 Oct 2022 16:54:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8730B5C00D5; Mon, 10 Oct 2022 12:54:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Oct 2022 12:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1665420841; x=1665507241; bh=U A074/Wca0/Ceen7T7pk9ajpSSt5OfFFpwlF9n57LjE=; b=UdsgZ/Nq5bnZWus3Q /pDS7VSPFGwu063sUb5NvDzrx62VvGHgopDvLORW1vMaCrYqoIB2gMsDxfBMG/1v GR3t7pF/rLCu5OtoRdiSdA/wsSR5ib5J0qwmXTqBeetBIIy85C7Y0KalEa1rN3Rp S36HcoiGg7y2s9/EubNwz/jzXCiqY73L2LaL3iJh+xVrfqLumhQ6EkDBKt2yUIzY KPMiPVmkXm+lS6EAtjiGTv186exsCLjI9KdGTTWbjM9HyfArhGopT7ohQogzHcZZ NFMSXMH4GiTCSWtWcO6LgEXWiz5LCgmaLHSZrStOKcEK93gVBHmdT5cpMB4O0E8u AD46A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejgedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Oct 2022 12:54:01 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B723C66; Mon, 10 Oct 2022 18:53:58 +0200 (CEST) Date: Mon, 10 Oct 2022 18:53:58 +0200 From: Alvaro Herrera To: Andres Freund Cc: Tom Lane , David Rowley , Justin Pryzby , pgsql-hackers@postgresql.org, Tomas Vondra , Peter Smith Subject: Re: shadow variables - pg15 edition Message-ID: <20221010165358.7aion6kdxpjonpkk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221010164549.7e5v6vvmcdtxuvov@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Oct-10, Andres Freund wrote: > On 2022-10-10 09:37:38 -0700, Andres Freund wrote: > > On 2022-10-10 18:33:11 +0200, Alvaro Herrera wrote: > > > On 2022-Oct-10, Andres Freund wrote: > > > > > > > Given the age of affected perl instances I suspect there'll not be a lot of > > > > developers affected, and the number of warnings is reasonably small too. It'd > > > > likely hurt more developers to not see the warnings locally, given that such > > > > shadowing often causes bugs. > > > > > > Maybe we can install a filter-out in src/pl/plperl's Makefile for the > > > time being. > > > > We could, but is it really a useful thing for something fixed 6 years ago? Well, for people purposefully installing using older installs of Perl (not me, admittedly), it does seem useful, because you get the benefit of checking shadow vars for the rest of the tree and still get no warnings if everything is clean. > As an out, a hypothetical dev could add -Wno-shadow=compatible-local to their > CFLAGS. But that disables it for the tree as a whole, which is not better. We can remove the filter-out when we decide to move the Perl version requirement up, say 4 years from now. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "El hombre nunca sabe de lo que es capaz hasta que lo intenta" (C. Dickens)