From: Heikki Linnakangas Date: Tue, 6 Jun 2023 17:30:53 +0000 (+0300) Subject: Initialize 'recordXtime' to silence compiler warning. X-Git-Tag: REL_12_16~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c35768cde241a61cdc6fb32663cdb5aeb559022;p=thirdparty%2Fpostgresql.git Initialize 'recordXtime' to silence compiler warning. In reality, recordXtime will always be set by the getRecordTimestamp call, but the compiler doesn't necessarily see that. Back-patch to all supported versions. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/CT5MN8E11U0M.1NYNCHXYUHY41@gonk --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 6431963ee3a..dbd72c0a16b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5840,7 +5840,7 @@ recoveryStopsAfter(XLogReaderState *record) uint8 info; uint8 xact_info; uint8 rmid; - TimestampTz recordXtime; + TimestampTz recordXtime = 0; /* * Ignore recovery target settings when not in archive recovery (meaning