aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-23 07:42:13 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-23 07:42:13 +0000
commitf36b2560a4d8dbeb5e0383ca44f8c85adb593a4f (patch)
tree27720a1b42d0b658e23297e592ff2c1f6620891e /src/backend/access/gist/gist.c
parent29a0fb84fcaddee3623c15b9a072ad893bb04270 (diff)
downloadpostgresql-f36b2560a4d8dbeb5e0383ca44f8c85adb593a4f.tar.gz
postgresql-f36b2560a4d8dbeb5e0383ca44f8c85adb593a4f.zip
Major code cleanups from D'arcy (-Wall -Werror)
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 6b6b2dc8d39..3f1f7b8674c 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -145,9 +145,11 @@ gistbuild(Relation heap,
Datum *d;
bool *nulls;
int nb, nh, ni;
+#ifndef OMIT_PARTIAL_INDEX
ExprContext *econtext;
TupleTable tupleTable;
TupleTableSlot *slot;
+#endif
Oid hrelid, irelid;
Node *pred, *oldPred;
GISTSTATE giststate;
@@ -199,6 +201,12 @@ gistbuild(Relation heap,
econtext = makeNode(ExprContext);
FillDummyExprContext(econtext, slot, hd, buffer);
}
+ else /* shut the compiler up */
+ {
+ tupleTable = NULL;
+ slot = NULL;
+ econtext = NULL;
+ }
#endif /* OMIT_PARTIAL_INDEX */
scan = heap_beginscan(heap, 0, NowTimeQual, 0, (ScanKey) NULL);
htup = heap_getnext(scan, 0, &buffer);