From: Peter Eisentraut Date: Wed, 13 Nov 2013 11:26:27 +0000 (-0500) Subject: Move variable closer to where it is used X-Git-Tag: REL9_4_BETA1~954 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa04b323c36931f96159ab1fd6f74f8401ab4c92;p=postgresql Move variable closer to where it is used This avoids an unused variable warning on Windows when building without asserts From: David Rowley --- 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),