aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-10-18 01:06:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-10-18 01:06:24 +0000
commit23836fb1fbe69c53eaaaae40db18ae6120c60135 (patch)
tree361ce8b5a232c0edecf0fed8347782ea4be41f97 /src/backend/access/gist/gist.c
parentd330f1554d3a99304e1965e3acf63c10ec34ce20 (diff)
downloadpostgresql-23836fb1fbe69c53eaaaae40db18ae6120c60135.tar.gz
postgresql-23836fb1fbe69c53eaaaae40db18ae6120c60135.zip
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c6
1 files changed, 2 insertions, 4 deletions
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);