Small refactor to get rid of -Wshadow=compatible-local warning
David Rowley <drowley@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gistbuildbuffers.c | modified | +2 −5 |
Discussion
- shadow variables - pg15 edition 56 messages · 2022-08-17 → 2022-10-12