From b6b2402b49f7d362a0914e29f707907d73c47b4d Mon Sep 17 00:00:00 2001 From: Artur Zakirov Date: Fri, 27 Jan 2017 11:44:40 +0300 Subject: [PATCH] Make compiler quiet --- parsexlog.c | 3 ++- validate.c | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/parsexlog.c b/parsexlog.c index 9e750974..32d54433 100644 --- a/parsexlog.c +++ b/parsexlog.c @@ -125,8 +125,9 @@ validate_wal(pgBackup *backup, while (true) { - record = XLogReadRecord(xlogreader, startpoint, &errormsg); bool timestamp_record; + + record = XLogReadRecord(xlogreader, startpoint, &errormsg); if (record == NULL) { XLogRecPtr errptr; diff --git a/validate.c b/validate.c index 70488a8f..fbfc1ac7 100644 --- a/validate.c +++ b/validate.c @@ -77,20 +77,15 @@ int do_validate(time_t backup_id, int i; int base_index; /* index of base (full) backup */ int last_restored_index; /* index of last restored database backup */ - int ret; - TimeLineID cur_tli; TimeLineID backup_tli; TimeLineID newest_tli; parray *timelines; parray *backups; pgRecoveryTarget *rt = NULL; pgBackup *base_backup = NULL; - bool another_pg_probackup = false; bool backup_id_found = false; - ret = catalog_lock(); - if (ret == 1) - another_pg_probackup = true; + catalog_lock(); rt = checkIfCreateRecoveryConf(target_time, target_xid, target_inclusive); if (rt == NULL) @@ -101,7 +96,6 @@ int do_validate(time_t backup_id, if (!backups) elog(ERROR, "cannot process any more."); - cur_tli = get_current_timeline(true); newest_tli = findNewestTimeLine(1); backup_tli = get_fullbackup_timeline(backups, rt);