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 1vR90T-007miX-2y for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2025 13:04:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vR90R-002iOg-2x for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2025 13:04:24 +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 1vR90R-002iOY-1q for pgsql-hackers@lists.postgresql.org; Thu, 04 Dec 2025 13:04:23 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vR90P-0036ab-20 for pgsql-hackers@lists.postgresql.org; Thu, 04 Dec 2025 13:04:23 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-b9a5b5b47bfso711983a12.1 for ; Thu, 04 Dec 2025 05:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764853459; x=1765458259; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OFBDwRgFrGHDhaC3omPOBtvp/y0mLSx/+VRQ4Trvw0c=; b=HArhWfpgKOOWzuaVOHSqQrRG2Cfw7yMqddpK5KLsH2U9d40ZGrNPz/jz5Qy7asqFGo IhzP24kGX8wsG7Onr92Var900BC4m7amLJBZWH25pnpGcZhW30uBNojn0WTsdMnlE3vr CkuHiZwqVgMYBocc0OiQk+IFY9v4covGkWqFqzayYP8wcTjOTaQKQ1Kn2LzigecK1fVU /2JFdQ+cWV7B+f+UzIHk63uaMHkayAClF5vOK4CHI1ygX6hRRcBo+HEL7/sOYnW/G1on W5AYdLLruC51IHdRI92J/fVTIEecKfwcWVA+e6+TW8b5HgcYq8tJNMDYWceiEhZ08vkw 81ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764853459; x=1765458259; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OFBDwRgFrGHDhaC3omPOBtvp/y0mLSx/+VRQ4Trvw0c=; b=mgASs1JK2QeBDLtPy2AeqURO3lhdxlV/haJSyim7usVBvV7E6CoyN9U08HVXaqpvIM ngY/nj0tDcBW47yXUcRCoPylXf7hBdsHfvSWL/m91/0xHezTzixiNa8NhIyCrBJJX+BA gP2TIns64sUmWzLHeIXEFrnGRwiV/W+JOOGPFWv18rpe2VepzDHY5WPq78GdyA6oO8wr 3T1vk9Ca331Spy9BVX/c5vVguScLwKYMaiB1PSj3HqdtDVlIOpfI3xC1fU4cexXyBuQh m7x8wx1iU8rR2C0hNjqtxuo0qAiRHs1a2lwKRasMiHJQsymodkaQA1FsKiVj+IXXgT58 PiIA== X-Forwarded-Encrypted: i=1; AJvYcCUMumyAZIOiDJz4+dpKJCrjn6qfagbe92uOMuufB0YI95AJ6rLhYFPr1x3uyyIGTPZoJDEpBgpkgA4Or+6m@lists.postgresql.org X-Gm-Message-State: AOJu0YxOOD9Hz9iyA/0jrH7sBAjxzqyqvR/3ZAUANmaWBF4azcT6FvWx G+qqVLRkkUuw1lt6LlZpys1Xv9ijApV3a77xc+98Jze4j3DJSYqKMz19+XHdCMtzkq9MyXYKMWy RMDl3llPQ3zdLQsdb/jf3XQAehYspvqg= X-Gm-Gg: ASbGncvrQqOK2mmfjn2oQOgY0aq4hM0BNLrgsc/LVF10zrR7ZIFp9PJBeBUaJS9pDQO DXn3lLhLVIb+GYiVqFdKe0gYL1eElgLBUqhpQdXNhUfO0WPp5MlM3xyvrAa7j+Bpadvz3W9Ez8T cMpmUAs/YQDsosDEmpcoYrce10MjFTeZSyFyRZMY9nqfDzswu3R45j1PAew+S13Ptqq/JLbsYHn I4tZJL/+iOnYzIO6bNhx7pxw8fwA9sbf6giv1MRUZwiTJHnBqWg+TGLehuX+yRZzurFFQ== X-Google-Smtp-Source: AGHT+IEMlRX4Sg5EAuM6P5n2UlbLLW39tj0HBcho2AZC5JysGUnfLozEnwW1/kXRgi1pH9+Mbs7KbPR97xmNhhIeXWI= X-Received: by 2002:a05:7300:3208:b0:2a4:65a1:ed3e with SMTP id 5a478bee46e88-2ab92e88ac3mr4582209eec.32.1764853458465; Thu, 04 Dec 2025 05:04:18 -0800 (PST) MIME-Version: 1.0 References: <202512041120.t3l7vzgdlzhj@alvherre.pgsql> In-Reply-To: <202512041120.t3l7vzgdlzhj@alvherre.pgsql> From: Bilal Yavuz Date: Thu, 4 Dec 2025 16:04:07 +0300 X-Gm-Features: AWmQ_bk17EjqwPsj9uc7u-yhOZCTrej9YeeSSeo2v-3keKJo4h8k7hmol1Mud-4 Message-ID: Subject: Re: Cleanup shadows variable warnings, round 1 To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Chao Li , Peter Smith , Peter Eisentraut , Postgres hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Thu, 4 Dec 2025 at 14:21, =C3=81lvaro Herrera wro= te: > > On 2025-Dec-04, Chao Li wrote: > > > The motivation is that CF=E2=80=99s CI currently fails on shadow-variab= le warnings. > > If you touch a file like a.c, and that file already has a legacy shadow= ing > > issue, CI will still fail your patch even if your changes are correct. = Then > > you=E2=80=99re forced to fix unrelated shadow-variable problems just to= get a clean > > CI run. I=E2=80=99ve run into this myself, and it=E2=80=99s disruptive = for both patch > > authors and reviewers. > > Hmm, maybe that should be turned off. It sounds seriously unhelpful. To test that I created this CI run [1], which edits the brin.c file. That file has a legacy shadowing issue but the CI did not fail. Could you please show an example CI run? [1] https://cirrus-ci.com/build/5444936843132928 -- Regards, Nazir Bilal Yavuz Microsoft