summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-11-30 11:12:16 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-11-30 11:12:16 -0500
commita74f50a3f627ac2ef73c77dc1b6ea67d0d44da50 (patch)
tree279395054314ab98224d0c26156865d12d49fda1 /src
parent6d0b8cd2f35257a3f16d70df59aa6a12c89f17ff (diff)
Prevent possible compiler warnings.
Back-patch commit a3e8486dffc413506b14eae9dc5d423f6ae8324a 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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/dbsize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/utils/adt/dbsize.c b/src/backend/utils/adt/dbsize.c
index 0bbc02e5ad7..9f0d9e7879f 100644
--- a/src/backend/utils/adt/dbsize.c
+++ b/src/backend/utils/adt/dbsize.c
@@ -609,6 +609,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS)
default:
/* no storage, return NULL */
rnode.relNode = InvalidOid;
+ /* some compilers generate warnings without these next two lines */
+ rnode.dbNode = InvalidOid;
+ rnode.spcNode = InvalidOid;
break;
}