pgsql: Fix some shadow variables in src/backend/replication/

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix some shadow variables in src/backend/replication/
Date: 2023-08-30 23:08:49
Message-ID: E1qbUIq-001jrp-VQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix some shadow variables in src/backend/replication/

The code is able to compile already without warnings under
-Wshadow=compatible-local, which is itself already enabled in the tree,
and the ones fixed here showed up with the more restrictive -Wshadow.

There are more of these that we may want to look at, and the ones fixed
here made the code confusing.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PuR0y4ofNOxi691VTVWmBfScHV9AaBMGSpeh8+DKp81Nw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b5934bfd6071fed3a38cea0cfaa93afda63d9c0c

Modified Files
--------------
src/backend/replication/logical/logicalfuncs.c | 4 ++--
src/backend/replication/logical/reorderbuffer.c | 6 +++---
src/backend/replication/walsender.c | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-08-31 06:23:00 pgsql: Restructure DECLARE_INDEX arguments
Previous Message Nathan Bossart 2023-08-30 21:48:47 pgsql: Rename some support functions for pgstat* views.