Skip to content
Snippets Groups Projects
Commit a3e8486d authored by Robert Haas's avatar Robert Haas
Browse files

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
parent 4f2cfc5b
No related branches found
No related tags found
No related merge requests found
...@@ -603,6 +603,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS) ...@@ -603,6 +603,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS)
default: default:
/* no storage, return NULL */ /* no storage, return NULL */
rnode.relNode = InvalidOid; rnode.relNode = InvalidOid;
/* some compilers generate warnings without these next two lines */
rnode.dbNode = InvalidOid;
rnode.spcNode = InvalidOid;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment