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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy