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

David Rowley <drowley@postgresql.org>

Commit: d389487525bc1d543f27543ed2ff824d3a30f508
Author: David Rowley <drowley@postgresql.org>
Date: 2022-08-25T14:46:56Z
Releases: 16.0
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

Files

PathChange+/−
src/backend/access/gist/gistbuildbuffers.c modified +2 −5

Discussion