diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/heap/vacuumlazy.c | 2 | ||||
-rw-r--r-- | src/backend/replication/basebackup_lz4.c | 1 | ||||
-rw-r--r-- | src/bin/pg_rewind/parsexlog.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index d57055674ed..9c88b9bd71a 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1112,7 +1112,7 @@ lazy_scan_heap(LVRelState *vacrel, int nworkers) if (lazy_scan_noprune(vacrel, buf, blkno, page, &hastup, &recordfreespace)) { - Size freespace; + Size freespace = 0; /* * Processed page successfully (without cleanup lock) -- just diff --git a/src/backend/replication/basebackup_lz4.c b/src/backend/replication/basebackup_lz4.c index 8730ee89dc7..d26032783cf 100644 --- a/src/backend/replication/basebackup_lz4.c +++ b/src/backend/replication/basebackup_lz4.c @@ -66,6 +66,7 @@ bbsink_lz4_new(bbsink *next, int compresslevel) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("lz4 compression is not supported by this build"))); + return NULL; /* keep compiler quiet */ #else bbsink_lz4 *sink; diff --git a/src/bin/pg_rewind/parsexlog.c b/src/bin/pg_rewind/parsexlog.c index f6cfee4ce8c..56df08c64f4 100644 --- a/src/bin/pg_rewind/parsexlog.c +++ b/src/bin/pg_rewind/parsexlog.c @@ -38,7 +38,7 @@ static const char *RmgrNames[RM_MAX_ID + 1] = { static void extractPageInfo(XLogReaderState *record); static int xlogreadfd = -1; -static XLogSegNo xlogreadsegno = -1; +static XLogSegNo xlogreadsegno = 0; static char xlogfpath[MAXPGPATH]; typedef struct XLogPageReadPrivate |