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