aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/dbsize.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-02-17 16:00:23 -0500
committerRobert Haas <rhaas@postgresql.org>2011-02-17 16:01:46 -0500
commita3e8486dffc413506b14eae9dc5d423f6ae8324a (patch)
tree415734ef18257346506aadefc3b30f472c28373f /src/backend/utils/adt/dbsize.c
parent4f2cfc5bb4c404c24d589339d29c210321f4b4d7 (diff)
downloadpostgresql-a3e8486dffc413506b14eae9dc5d423f6ae8324a.tar.gz
postgresql-a3e8486dffc413506b14eae9dc5d423f6ae8324a.zip
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
Diffstat (limited to 'src/backend/utils/adt/dbsize.c')
-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 f4729a7b6b3..543a244bf99 100644
--- a/src/backend/utils/adt/dbsize.c
+++ b/src/backend/utils/adt/dbsize.c
@@ -603,6 +603,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;
}