mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
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:
parent
4f2cfc5bb4
commit
a3e8486dff
@ -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…
Reference in New Issue
Block a user