Skip to content

Commit a74f50a

Browse files
committed
Prevent possible compiler warnings.
Back-patch commit a3e8486 into the 9.0 branch. This is the only warning I'm seeing in the live branches with gcc 4.4.7 (other than the known "unused variable 'yyg'" flex lossage), which makes it just annoying enough to want to clean up.
1 parent 6d0b8cd commit a74f50a

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
@@ -609,6 +609,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS)
609609
default:
610610
/* no storage, return NULL */
611611
rnode.relNode = InvalidOid;
612+
/* some compilers generate warnings without these next two lines */
613+
rnode.dbNode = InvalidOid;
614+
rnode.spcNode = InvalidOid;
612615
break;
613616
}
614617

0 commit comments

Comments
 (0)