projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f2cfc5
)
Prevent possible compiler warnings.
author
Robert Haas
<rhaas@postgresql.org>
Thu, 17 Feb 2011 21:00:23 +0000
(16:00 -0500)
committer
Robert Haas
<rhaas@postgresql.org>
Thu, 17 Feb 2011 21:01:46 +0000
(16:01 -0500)
Simon Riggs reports that rnode.dbNode and rnode.spcNode were
generating unused variable warnings on gcc 4.4.3 with CFLAGS=-O1
src/backend/utils/adt/dbsize.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/dbsize.c
b/src/backend/utils/adt/dbsize.c
index f4729a7b6b330b5ad98c42764f96e6f7f17d6208..543a244bf999ce09794c36438ec70c5238550adc 100644
(file)
--- 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;
}