Small refactor to get rid of -Wshadow=compatible-local warning
authorDavid Rowley <drowley@postgresql.org>
Thu, 25 Aug 2022 14:46:56 +0000 (02:46 +1200)
committerDavid Rowley <drowley@postgresql.org>
Thu, 25 Aug 2022 14:46:56 +0000 (02:46 +1200)
commitd389487525bc1d543f27543ed2ff824d3a30f508
tree20202e8ff11874fcefb2941e369877ede0e33a33
parent3e0fff2e6888e39b0ad5cdfdb78bc1c2bb2b22c9
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
src/backend/access/gist/gistbuildbuffers.c