diff options
author | Tomas Vondra | 2017-06-08 15:55:47 +0000 |
---|---|---|
committer | Tomas Vondra | 2018-10-12 12:58:54 +0000 |
commit | e343f9312386c000c73657e67c6e18a414fb359b (patch) | |
tree | bb01e36b788a69d701d4eeb317fac4a9ee9e3b37 | |
parent | a74d237c3147ee1b60c91fa5d399399926a5de4a (diff) |
Fix compiler warnings due to unused variables
Removes a few variables that were either entirely unused, or just set
and never read again.
-rw-r--r-- | src/backend/commands/sequence.c | 12 |
1 files changed, 2 insertions, 10 deletions
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; } } |