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
pull/1/head
Robert Haas 15 years ago
parent 4f2cfc5bb4
commit a3e8486dff
  1. 3
      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;
}

Loading…
Cancel
Save