Remove some unused variables, fix compiler warnings
authorPavan Deolasee <[email protected]>
Fri, 14 Sep 2018 04:47:59 +0000 (10:17 +0530)
committerPavan Deolasee <[email protected]>
Fri, 14 Sep 2018 04:47:59 +0000 (10:17 +0530)
src/backend/commands/sequence.c

index f429be6d22313ec46ab1a80a4e27b5ad0f234efe..caa5cba2b8b5927702bc391589b3959ee31b560e 100644 (file)
@@ -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 */