Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit aa04b32

Browse files
committed
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>
1 parent c0764a5 commit aa04b32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/utils/cache/relfilenodemap.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
213213

214214
while (HeapTupleIsValid(ntp = systable_getnext(scandesc)))
215215
{
216-
bool isnull PG_USED_FOR_ASSERTS_ONLY;
217-
218216
if (found)
219217
elog(ERROR,
220218
"unexpected duplicate for tablespace %u, relfilenode %u",
@@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
224222
#ifdef USE_ASSERT_CHECKING
225223
if (assert_enabled)
226224
{
225+
bool isnull;
227226
Oid check;
228227
check = fastgetattr(ntp, Anum_pg_class_reltablespace,
229228
RelationGetDescr(relation),

0 commit comments

Comments
 (0)