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 1vOyhx-00Fmzp-1p for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 13:40:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vOyhv-00BZ5C-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 13:40:19 +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 1vOyhu-00BZ53-2U for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 13:40:19 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vOyhs-001zlK-2j for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 13:40:18 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-298145fe27eso30200335ad.1 for ; Fri, 28 Nov 2025 05:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764337213; x=1764942013; darn=lists.postgresql.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=28n9UMNyf76/d67ZEi5QO+YBk/w4WK8HvPzwPYDp9Hs=; b=PxGoZHiUD0VDK67v1jnCn6cSZJ1FomtU2UiDFfaKr9I/fcyEkn5bixuwmLOSkqX7oJ 7xGmWBhiMGNOuW+35FUcDGPCIkoi+9odef44BV0cQbNKcadqYAMyXHwNMsfVdnGZ7oV+ xEw9LzAV6MPl18CDtutqUSe5CJ98I4b92kgfnARkDeebb4v2WPx3AuLHV9P981QLrNAR 39jkLp7Ocb33Mg9+y3biEZrrR0OAlfV8qhMPLi/uCLVP9PQD3AfTHIBMTVS12863vBsL /fAkPMZ/sCeIHgKHpKbu79koDK0B3Wp4nmh36SJFmSBAtf2yIbukVLTZzCCWstgTAmgz kvfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764337213; x=1764942013; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=28n9UMNyf76/d67ZEi5QO+YBk/w4WK8HvPzwPYDp9Hs=; b=f+PI5wn9+PP46uuYYEgy3nzFqRuarMa19621hmq0GwwnXLie+T4WKDUEt7as+al1G1 hy2SkZwNxPgmQzAU9Awnz3P2MucK9FWtjRzngNO02+3mIB7WUMBWYp4nLOkPBmwc920T xjp7LeqNlLwim5lH88mnczDT9DfcNGglhfmsk4q09wB+IC7jkaOZRyXenvAI/WiatWsF PHzZotlaUOipuL95TAfzbRh3fOijExWM6Sefwz0kMmNfYpf/SLhV3oVU0JHeWIsCJMGs sVxsY4sGzVOLH/GVc22W6379oW8X0tA7W2Ex+8aTRkIu3C1JjkMZDtQZfqIdwo+xdUbw mseA== X-Gm-Message-State: AOJu0Yy5dNWk2wRWP57kE9J+/xwuE1hG1PcCbG4ZtefQ7bGSjniSEzhx gqD12Nkr1I8q+ZrfTKLrIq6BDhWD8gwExEwctYYkrWK8FgrNxkHXL8hI3pR0dvOMi4Q= X-Gm-Gg: ASbGncuY2oXhGyxKnn9A6dNj0OtY5G3eVwSUVGwjhFh5HXkRmpjlOOMZgkQrdWPAP2a LmND9uxxJ4YPOfsOIWEQahcvQxr2MECtaOAJJrvIxPU/b4F7Jte0Lj0n0l/PEkqyRPQ1iY6Ui/H OpncM+5SMtlW9ZrCTNTFO3t0lyecRG1G+c+CR6Y/xwsgReLhS+Skb2EDJIcktKdtIcw3T5Ucygu W1R8f9QEsnPMHHiDITPQ7cqtSAuhsh8MLUHJ9vILt8i//qRFwCEVBcCaQfdCN09/oiM3Uie2Iyn NLWaSZ+062kP/7eZZH+0vsdqI/IJsKL3AdmiWcJYNRE5k0+4oc2i0RqM+miw1zSy7xIpc1h+Uya M8WFGepbIE+xKkYAdpcVlv1wGuMN/XXdZDd2xnLKgUOLIAgQiZjbI6uDan+TfiAT09PXKK9A1ii WvzLQ9lN4La0L6rd3X1aE= X-Google-Smtp-Source: AGHT+IFUfHfrMVuxhtsMyg74jbnWWa3vpvyo8AVGUqmw4UegF3eJI70lrFDwx56s4bj2TsWJ6X4BoQ== X-Received: by 2002:a17:902:ebca:b0:295:9e4e:4092 with SMTP id d9443c01a7336-29bab1daa12mr154285265ad.56.1764337213465; Fri, 28 Nov 2025 05:40:13 -0800 (PST) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-be5093b5b79sm4797701a12.25.2025.11.28.05.40.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Nov 2025 05:40:12 -0800 (PST) From: Chao Li Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Cleanup shadows variable warnings, round 1 Date: Fri, 28 Nov 2025 21:39:33 +0800 References: To: Postgres hackers In-Reply-To: Message-Id: <7F33AD9D-619D-4846-937A-F0EF982332A4@gmail.com> X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 28, 2025, at 16:16, Chao Li wrote: >=20 > Hi Hackers, >=20 > While reviewing [1], it makes me recall an experience where I had a = patch ready locally, but CommitFest CI failed with a shadows-variable = warning. Now I understand that -Wall doesn't by default enable -Wshadows = with some compilers like clang. >=20 > I did a clean build with manually enabling -Wshadow and surprisingly = found there are a lot of such warnings in the current code base, roughly = ~200 occurrences. >=20 > As there are too many, I plan to fix them all in 3-4 rounds. For round = 1 patch, I'd see any objection, then decide if to proceed more rounds. >=20 > [1] = https://postgr.es/m/CAHut+PsF8R0Bt4J3c92+T2F0mun0rRfK=3D-GH+iBv2s-O8ahJJw@= mail.gmail.com >=20 CF entry added: https://commitfest.postgresql.org/patch/6262/ Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/