From: Pavan Deolasee Date: Fri, 14 Sep 2018 04:47:59 +0000 (+0530) Subject: Remove some unused variables, fix compiler warnings X-Git-Tag: XL_10_R1BETA1~5 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9a8d521d560f658624f5d2d573deec4dd6fc1d65;p=postgres-xl.git Remove some unused variables, fix compiler warnings --- diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index f429be6d22..caa5cba2b8 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -706,11 +706,8 @@ nextval_internal(Oid relid, bool check_permissions) HeapTupleData seqdatatuple; Form_pg_sequence_data seq; int64 incby, - maxv, - minv, cache, result; - bool cycle; int64 range; int64 rangemax; char *seqname; @@ -752,10 +749,7 @@ nextval_internal(Oid relid, bool check_permissions) elog(ERROR, "cache lookup failed for sequence %u", relid); pgsform = (Form_pg_sequence) GETSTRUCT(pgstuple); incby = pgsform->seqincrement; - maxv = pgsform->seqmax; - minv = pgsform->seqmin; cache = pgsform->seqcache; - cycle = pgsform->seqcycle; ReleaseSysCache(pgstuple); /* lock page' buffer and read tuple */