From aa04b323c36931f96159ab1fd6f74f8401ab4c92 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 13 Nov 2013 06:26:27 -0500 Subject: [PATCH] Move variable closer to where it is used This avoids an unused variable warning on Windows when building without asserts From: David Rowley --- src/backend/utils/cache/relfilenodemap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/utils/cache/relfilenodemap.c b/src/backend/utils/cache/relfilenodemap.c index f3f9a09899..904b2cd9e7 100644 --- a/src/backend/utils/cache/relfilenodemap.c +++ b/src/backend/utils/cache/relfilenodemap.c @@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) while (HeapTupleIsValid(ntp = systable_getnext(scandesc))) { - bool isnull PG_USED_FOR_ASSERTS_ONLY; - if (found) elog(ERROR, "unexpected duplicate for tablespace %u, relfilenode %u", @@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) #ifdef USE_ASSERT_CHECKING if (assert_enabled) { + bool isnull; Oid check; check = fastgetattr(ntp, Anum_pg_class_reltablespace, RelationGetDescr(relation), -- 2.40.0