From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Small refactor to get rid of -Wshadow=compatible-local warning
Date: Thu, 25 Aug 2022 14:47:25 +0000
Message-ID: <E1oRE8i-0019oS-Pj@gemulon.postgresql.org> (raw)
Small refactor to get rid of -Wshadow=compatible-local warning
Further reduce -Wshadow=compatible-local warnings by 1 by refactoring the
code in gistRelocateBuildBuffersOnSplit() to make use of
foreach_current_index() instead of manually incrementing a variable on
each loop.
Author: David Rowley
Discussion: https://postgr.es/m/CAApHDvpGZX-X=Bn4moyXgfFa0CdSUwoa04d3isit3=1qo8F8Bw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d389487525bc1d543f27543ed2ff824d3a30f508
Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: drowley@postgresql.org
Subject: Re: pgsql: Small refactor to get rid of -Wshadow=compatible-local warning
In-Reply-To: <E1oRE8i-0019oS-Pj@gemulon.postgresql.org>
References: <E1oRE8i-0019oS-Pj@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox