Reduce scope of for-loop-local variables to avoid shadowing Adjust a couple of for-loops where a local variable was shadowed by another in the same scope, by renaming it as well as reducing its scope to the containing for-loop.
Author: Chao Li <[email protected]> Reviewed-by: Peter Smith <[email protected]> Reviewed-by: Álvaro Herrera <[email protected]> Discussion: https://postgr.es/m/CAEoWx2kQ2x5gMaj8tHLJ3=jfc+p5yxhkjyhrdtiqw2nn2fj...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/cece37c9843c980b5be2f6d24c2b9cef1f9429a7 Modified Files -------------- src/backend/backup/basebackup_incremental.c | 10 ++++------ src/backend/parser/parse_target.c | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-)
