aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-05-02 15:48:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-05-02 15:48:11 +0000
commit67030eec1ef4128da096d1eb5bdba8bb07126efc (patch)
treeac65c800c4b6533dca5df947c031db84c6c4f029 /src
parent2610a1fd5ec639c9870a8a47fef4ed99e321a802 (diff)
downloadpostgresql-67030eec1ef4128da096d1eb5bdba8bb07126efc.tar.gz
postgresql-67030eec1ef4128da096d1eb5bdba8bb07126efc.zip
Suppress some gcc warnings.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/gin/ginentrypage.c4
-rw-r--r--src/backend/access/gin/ginscan.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/access/gin/ginentrypage.c b/src/backend/access/gin/ginentrypage.c
index 81c109d6c4d..f65436d0f1b 100644
--- a/src/backend/access/gin/ginentrypage.c
+++ b/src/backend/access/gin/ginentrypage.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.1 2006/05/02 11:28:54 teodor Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.2 2006/05/02 15:48:11 tgl Exp $
*-------------------------------------------------------------------------
*/
@@ -116,7 +116,7 @@ entryIsMoveRight(GinBtree btree, Page page) {
static BlockNumber
entryLocateEntry(GinBtree btree, GinBtreeStack *stack) {
OffsetNumber low, high, maxoff;
- IndexTuple itup;
+ IndexTuple itup = NULL;
int result;
Page page = BufferGetPage( stack->buffer );
diff --git a/src/backend/access/gin/ginscan.c b/src/backend/access/gin/ginscan.c
index b641b82e662..8832800066a 100644
--- a/src/backend/access/gin/ginscan.c
+++ b/src/backend/access/gin/ginscan.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.1 2006/05/02 11:28:54 teodor Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.2 2006/05/02 15:48:11 tgl Exp $
*-------------------------------------------------------------------------
*/
@@ -66,6 +66,8 @@ fillScanKey( GinState *ginstate, GinScanKey key, Datum query,
}
}
+#ifdef NOT_USED
+
static void
resetScanKeys(GinScanKey keys, uint32 nkeys) {
uint32 i, j;
@@ -92,6 +94,8 @@ resetScanKeys(GinScanKey keys, uint32 nkeys) {
}
}
+#endif
+
static void
freeScanKeys(GinScanKey keys, uint32 nkeys, bool removeRes) {
uint32 i, j;