From 23836fb1fbe69c53eaaaae40db18ae6120c60135 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 18 Oct 2005 01:06:24 +0000 Subject: A few trivial code cleanups motivated by reading warnings generated by a recent HP C compiler. Mostly, get rid of useless local variables that are assigned to but never used. --- src/backend/access/gist/gist.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/backend/access/gist/gist.c') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 89f59ebc279..00b1620ab00 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.126 2005/09/22 20:44:36 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.127 2005/10/18 01:06:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -321,14 +321,12 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate) /* no space for insertion */ IndexTuple *itvec, *newitup; - int tlen, - olen; + int tlen; SplitedPageLayout *dist = NULL, *ptr; is_splitted = true; itvec = gistextractbuffer(state->stack->buffer, &tlen); - olen = tlen; itvec = gistjoinvector(itvec, &tlen, state->itup, state->ituplen); newitup = gistSplit(state->r, state->stack->buffer, itvec, &tlen, &dist, giststate); -- cgit v1.2.3