Move variable closer to where it is used
authorPeter Eisentraut
Wed, 13 Nov 2013 11:26:27 +0000 (06:26 -0500)
committerPeter Eisentraut
Wed, 13 Nov 2013 11:26:27 +0000 (06:26 -0500)
This avoids an unused variable warning on Windows when building without
asserts

From: David Rowley 

src/backend/utils/cache/relfilenodemap.c

index f3f9a098996a9f1c3eadca8248a0591fcefcd026..904b2cd9e7487314563d8123628b357cdb9ee361 100644 (file)
@@ -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),