More -Wshadow=compatible-local warning fixes

David Rowley <drowley@postgresql.org>

Commit: 3e0fff2e6888e39b0ad5cdfdb78bc1c2bb2b22c9
Author: David Rowley <drowley@postgresql.org>
Date: 2022-08-25T14:35:40Z
Releases: 16.0
More -Wshadow=compatible-local warning fixes

In a similar effort to f01592f91, here we're targetting fixing the
warnings where we've deemed the shadowing variable to serve a close enough
purpose to the shadowed variable just to reuse the shadowed version and
not declare the shadowing variable at all.

By my count, this takes the warning count from 106 down to 71.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20220825020839.GT2342@telsasoft.com

Files

Discussion