Re: pgsql: Reorder actions in ProcArrayApplyRecoveryInfo()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Reorder actions in ProcArrayApplyRecoveryInfo()
Date: 2024-01-19 16:08:15
Message-ID: 2621749.1705680495@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Alexander Korotkov <akorotkov(at)postgresql(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-01-19 16:17:25 pgsql: Fix name collision in c64086b79dba
Previous Message Daniel Gustafsson 2024-01-19 15:39:06 pgsql: doc: Update compiler for FreeBSD specific instructions