1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +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 c4f18483b6
commit 3d975d0fc5

View File

@ -2837,9 +2837,6 @@ XLogFileRead(uint32 log, uint32 seg, 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;