Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQxdy-0032dp-2D for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2025 00:56:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQxdx-00HLDK-1f for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2025 00:56:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQxdx-00HLDC-0k for pgsql-hackers@lists.postgresql.org; Thu, 04 Dec 2025 00:56:25 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQxdv-0030pG-1y for pgsql-hackers@lists.postgresql.org; Thu, 04 Dec 2025 00:56:25 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 540F91400133; Wed, 3 Dec 2025 19:56:22 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Wed, 03 Dec 2025 19:56:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1764809782; x=1764896182; bh=BVtba7uua+ krFtQ0SNOwyxB4CmP8quJMPUZDegMNr6s=; b=ofUR+fwIpBDR++3EfBPr0NbpNf OvnhuiSglo+yP0toe7dwdMjcarb89Y1+YhmVkz6cvDto+dLEeFVe9MWWg0BAiv+n o1s8gDdpr7L4hjCYG7VHNSmOfgF+DRVrrEI28jugWOA+OdE1lNU4TWug84LoNxUC 21Tx+HNZDGdmORBtPlJlzcxD4KgPMmJldE5QvCMKWXYI1EKxy2CiuHBiA1L8M97z yjHdIcGXsivOUFMHCDdtnvD86ANgGothjvYl+gMelAODgPFU3Q8Pi04hAaMIg6D/ zz/ql08bafwADOsW2gKtjd4fxLMzhBubkh5JTzfjxD22W1YoLA/wLyVFPPTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1764809782; x=1764896182; bh=BVtba7uua+krFtQ0SNOwyxB4CmP8quJMPUZ DegMNr6s=; b=UfDrfQYHh5BnMZhV924JrqCKqLwWwZVrK2DKVM4ALm9qecPIdB7 J1G6mGq9h1oTZPZYc61H/I8y5UJSdk27ZaTdx5/jirNuh7ZxP6znVSYSlCaoJJc2 7JP93C+4biFOtiOGCGwDW5HIJi5k8t/tzq5wt6qTskP1YRudF0m7aMnoPx3ts2GD CHzQL/EZImRoMtejlwRh3N0z6CFCq2aP4WXfSLF1eSvqtKufFTXIOZ4htnWQD0GK 2xWlxG2txb5M69ihwd/8OCPO4kTPyjEhju40UOBoLt2+D9XNB2GwKh1tty9+kzVV Tl8bSeDfEZygdbmZrViZ6VbdYwuHzJTcBuQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhluc fvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecu hfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuih gvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeegfffh keeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgs pghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhhlihhnnh grkhgrsehikhhirdhfihdprhgtphhtthhopehlihdrvghvrghnrdgthhgrohesghhmrghi lhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Dec 2025 19:56:20 -0500 (EST) Date: Thu, 4 Dec 2025 09:56:07 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: Chao Li , Postgres hackers Subject: Re: Cleanup shadows variable warnings, round 1 Message-ID: References: <70eaa01a-2699-43c3-b175-ada78aed5448@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NT0XW5LBkIty3vw7" Content-Disposition: inline In-Reply-To: <70eaa01a-2699-43c3-b175-ada78aed5448@iki.fi> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --NT0XW5LBkIty3vw7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 28, 2025 at 11:11:04AM +0200, Heikki Linnakangas wrote: > I don't know if we've agreed on a goal of getting rid of all shadowing, it's > a lot of code churn. I agree shadowing is often confusing and error-prone, > so maybe it's worth it. (Providing my own context with more information on the matter, Peter E. mentioning this commit upthread.) As far as I know, the latest consensus with shadow variables was that -Wshadow=compatible-local was OK for now, 0fe954c28584 mentioning that we could consider a tighter -Wshadow=local later on. I don't recall a clear objection about doing a tighter move, just that it was a lot of work for unclear gains especially when it comes to the extra backpatching noise. -- Michael --NT0XW5LBkIty3vw7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmkw3CcACgkQnvQgOdby QH2ghg//TxGqYF16ON/LEJXH52cQhKmrS3IDMduIgMsCZJaE5586gUSkerzo4cvp eNOngXWeUed2ZInEuu4wEWSV0kBn5mNaL4r4aST5lg8PxarkWQTSePp5ZhNynLA/ 4NVW1X9tBuu4+1dFl4pRB03eiSBYvjfoxdjwOHxKXQZmCdei//rapagKqbDgieo9 5GiFdwNS3eh+d1zR0pD5pgVGp1P6HiNZsI9na6oFErT1fR1CgH27PqpulmIvmFiy qv+1Y2kgOtUMzqUloPy4rf6aQniGQhc28zFFYDEml3fCrpSpli7NOnB8Zn5CbgGM K4QmjJUPfllrRrgIeHM19P0jTKt0ReWBVQmav5P72LcjkWOgQTDhM6gbmNMOSw5Y gtddXpOIjZ2J4bWorynibzanjomfjXmXxMXrKgdIzRVv70C3IWLxOPf29WhomBQ4 S3TZ+TbiyAgmC61lBY9q2bWCcbH2X8hRmiM9FM60lLYhKaQ5WwM9UEjrDotTbGu+ qZmIWmz3usYT/wud1F234mA9Eqt3L3LFszrx0kmqgJ21IdpEy0UzFCy+5P+sCb1Q +ww+inR4q7Dmu5UK8bVazbApAWQ14PjB95lGXG7k9SK3XKak8udnuZbJnH+ykEMV LWwB8lUjzvfKSKf+qESWUsIEQW6wJq4vi0wJIxfr5uYdTk8UMdU= =SBQG -----END PGP SIGNATURE----- --NT0XW5LBkIty3vw7--