Commit aa04b323 authored by Peter Eisentraut's avatar Peter Eisentraut

Move variable closer to where it is used

This avoids an unused variable warning on Windows when building without
asserts

From: David Rowley <dgrowleyml@gmail.com>
parent c0764a54
...@@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) ...@@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
while (HeapTupleIsValid(ntp = systable_getnext(scandesc))) while (HeapTupleIsValid(ntp = systable_getnext(scandesc)))
{ {
bool isnull PG_USED_FOR_ASSERTS_ONLY;
if (found) if (found)
elog(ERROR, elog(ERROR,
"unexpected duplicate for tablespace %u, relfilenode %u", "unexpected duplicate for tablespace %u, relfilenode %u",
...@@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode) ...@@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
#ifdef USE_ASSERT_CHECKING #ifdef USE_ASSERT_CHECKING
if (assert_enabled) if (assert_enabled)
{ {
bool isnull;
Oid check; Oid check;
check = fastgetattr(ntp, Anum_pg_class_reltablespace, check = fastgetattr(ntp, Anum_pg_class_reltablespace,
RelationGetDescr(relation), RelationGetDescr(relation),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment