Skip to content

Commit 67030ee

Browse files
committed
Suppress some gcc warnings.
1 parent 2610a1f commit 67030ee

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/backend/access/gin/ginentrypage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.1 2006/05/02 11:28:54 teodor Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.2 2006/05/02 15:48:11 tgl Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -116,7 +116,7 @@ entryIsMoveRight(GinBtree btree, Page page) {
116116
static BlockNumber
117117
entryLocateEntry(GinBtree btree, GinBtreeStack *stack) {
118118
OffsetNumber low, high, maxoff;
119-
IndexTuple itup;
119+
IndexTuple itup = NULL;
120120
int result;
121121
Page page = BufferGetPage( stack->buffer );
122122

src/backend/access/gin/ginscan.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.1 2006/05/02 11:28:54 teodor Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.2 2006/05/02 15:48:11 tgl Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

@@ -66,6 +66,8 @@ fillScanKey( GinState *ginstate, GinScanKey key, Datum query,
6666
}
6767
}
6868

69+
#ifdef NOT_USED
70+
6971
static void
7072
resetScanKeys(GinScanKey keys, uint32 nkeys) {
7173
uint32 i, j;
@@ -92,6 +94,8 @@ resetScanKeys(GinScanKey keys, uint32 nkeys) {
9294
}
9395
}
9496

97+
#endif
98+
9599
static void
96100
freeScanKeys(GinScanKey keys, uint32 nkeys, bool removeRes) {
97101
uint32 i, j;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy