1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-24 10:47:04 +03:00

Fix compiler warnings about unused variables, caused by my previous commit.

Reported by Peter Eisentraut.
This commit is contained in:
Heikki Linnakangas 2012-09-04 22:07:35 -07:00
parent 022cd22f0f
commit 358ff99d70

View File

@ -2780,9 +2780,6 @@ XLogFileRead(XLogSegNo segno, int emode, TimeLineID tli,
*/ */
if (source == XLOG_FROM_ARCHIVE) if (source == XLOG_FROM_ARCHIVE)
{ {
/* use volatile pointer to prevent code rearrangement */
volatile XLogCtlData *xlogctl = XLogCtl;
XLogRecPtr endptr;
char xlogfpath[MAXPGPATH]; char xlogfpath[MAXPGPATH];
bool reload = false; bool reload = false;
struct stat statbuf; struct stat statbuf;