pgsql: Reduce warnings with -Wshadow=compatible-local builds

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reduce warnings with -Wshadow=compatible-local builds
Date: 2022-08-20 03:18:02
Message-ID: E1oPEzo-000Lom-Vf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reduce warnings with -Wshadow=compatible-local builds

In a similar effort to f01592f91, here we further reduce the warnings we
get about local variables being shadowed when building with
-Wshadow=compatible-local. This small change reduces the overall number
of warnings by 36.

Discussion: https://postgr.es/m/CAApHDvqBBqF=wmV5azrO7h3VwpwQo+JFBQ+g=E6wVUhKcqR8gA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/92fce4e1eda9b24d73f583fbe9b58f4e03f097a4

Modified Files
--------------
src/test/regress/regress.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-08-20 11:57:10 pgsql: Remove remaining mentions of UNSAFE_STAT_OK
Previous Message David Rowley 2022-08-19 23:42:04 pgsql: Remove shadowed local variables that are new in v15