From a51cc7e9e60701d31032669011adcda8b4621d93 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 27 Mar 2019 11:10:42 -0400 Subject: [PATCH] Suppress uninitialized-variable warning. Apparently Andres' compiler is smart enough to see that hpage must be initialized before use ... but mine isn't. --- src/backend/access/heap/heapam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index f3812dd587..de5bb9194e 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -6986,6 +6986,7 @@ heap_compute_xid_horizon_for_tuples(Relation rel, /* Iterate over all tids, and check their horizon */ hblkno = InvalidBlockNumber; + hpage = NULL; for (int i = 0; i < nitems; i++) { ItemPointer htid = &tids[i];