From: Robert Haas Date: Thu, 17 Feb 2011 21:00:23 +0000 (-0500) Subject: Prevent possible compiler warnings. X-Git-Tag: REL9_1_ALPHA4~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3e8486dffc413506b14eae9dc5d423f6ae8324a;p=thirdparty%2Fpostgresql.git 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 --- 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; }