]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warnings about unused variables, caused by my previous commit.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 5 Sep 2012 05:07:35 +0000 (22:07 -0700)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 5 Sep 2012 05:07:35 +0000 (22:07 -0700)
Reported by Peter Eisentraut.

src/backend/access/transam/xlog.c

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