From: Tomas Vondra Date: Thu, 8 Jun 2017 15:55:47 +0000 (+0200) Subject: Fix compiler warnings due to unused variables X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=e343f9312386c000c73657e67c6e18a414fb359b;p=postgres-xl.git Fix compiler warnings due to unused variables Removes a few variables that were either entirely unused, or just set and never read again. --- diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 750c86f923..973098947d 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -685,17 +685,11 @@ nextval_internal(Oid relid) Page page; HeapTupleData seqtuple; Form_pg_sequence seq; - int64 incby, - maxv, - minv, - cache, + int64 cache, log, - fetch, - last; + fetch; int64 result, - next, rescnt = 0; - bool logit = false; /* open and AccessShareLock sequence */ init_sequence(relid, &elm, &seqrel); @@ -835,7 +829,6 @@ nextval_internal(Oid relid) { /* forced log to satisfy local demand for values */ fetch = log = fetch + SEQ_LOG_VALS; - logit = true; } else { @@ -845,7 +838,6 @@ nextval_internal(Oid relid) { /* last update of seq was before checkpoint */ fetch = log = fetch + SEQ_LOG_VALS; - logit = true; } }