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
This commit is contained in:
Robert Haas 2011-02-17 16:00:23 -05:00
parent 4f2cfc5bb4
commit a3e8486dff

View File

@ -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;
}