Suppress some gcc warnings.
authorTom Lane
Tue, 2 May 2006 15:48:11 +0000 (15:48 +0000)
committerTom Lane
Tue, 2 May 2006 15:48:11 +0000 (15:48 +0000)
src/backend/access/gin/ginentrypage.c
src/backend/access/gin/ginscan.c

index 81c109d6c4d84cf3ab181ec1cc5967bba9b275ed..f65436d0f1b12c8cccc2d0d9a6612212c149363e 100644 (file)
@@ -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 );
 
index b641b82e6621568ffa08b0979a7ca7ae97908c80..8832800066ab7e81c87f83f09207f39c4601ce5d 100644 (file)
@@ -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;