Skip to content

Commit a3e8486

Browse files
committed
Prevent possible compiler warnings.
Simon Riggs reports that rnode.dbNode and rnode.spcNode were generating unused variable warnings on gcc 4.4.3 with CFLAGS=-O1
1 parent 4f2cfc5 commit a3e8486

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/utils/adt/dbsize.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS)
603603
default:
604604
/* no storage, return NULL */
605605
rnode.relNode = InvalidOid;
606+
/* some compilers generate warnings without these next two lines */
607+
rnode.dbNode = InvalidOid;
608+
rnode.spcNode = InvalidOid;
606609
break;
607610
}
608611

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