pgsql: Small refactor to get rid of -Wshadow=compatible-local warning

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Small refactor to get rid of -Wshadow=compatible-local warning
Date: 2022-08-25 14:47:25
Message-ID: E1oRE8i-0019oS-Pj@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2022-08-25 17:37:28 pgsql: Fix doc oversight for custom WAL resource managers.
Previous Message David Rowley 2022-08-25 14:36:08 pgsql: More -Wshadow=compatible-local warning fixes