pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Reorder actions in ProcArrayApplyRecoveryInfo()
Date: Fri, 19 Jan 2024 11:08:15 -0500
Message-ID: <2621749.1705680495@sss.pgh.pa.us> (raw)
In-Reply-To: <E1rQqeS-002A0s-Qm@gemulon.postgresql.org>
References: <E1rQqeS-002A0s-Qm@gemulon.postgresql.org>

Alexander Korotkov <akorotkov@postgresql.org> writes:
> Reorder actions in ProcArrayApplyRecoveryInfo()

I'm seeing this warning since this commit:

procarray.c: In function 'ProcArrayApplyRecoveryInfo':
procarray.c:1172:17: warning: declaration of 'xid' shadows a previous local [-Wshadow=compatible-local]
   TransactionId xid = running->xids[i];
                 ^~~
procarray.c:1056:16: note: shadowed declaration is here
  TransactionId xid;
                ^~~

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <2621749.1705680495@sss.pgh.pa.us>
Permalink:  ../2621749.1705680495@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2621749.1705680495@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Reorder actions in ProcArrayApplyRecoveryInfo()
  In-Reply-To: <2621749.1705680495@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox