eliminate variables that are not used at all
authorTomas Vondra <[email protected]>
Tue, 1 Mar 2016 02:29:42 +0000 (03:29 +0100)
committerPavan Deolasee <[email protected]>
Fri, 11 Mar 2016 06:24:07 +0000 (11:54 +0530)
src/backend/parser/parse_agg.c
src/gtm/main/gtm_txn.c
src/gtm/proxy/proxy_main.c
src/gtm/recovery/register_common.c

index d78f96a0b65e7d28161c11450c22e7ff59d15687..e2e12bfea87c02f2a49ec8b502bcbdeb27483428 100644 (file)
@@ -113,8 +113,6 @@ transformAggregateCall(ParseState *pstate, Aggref *agg,
        AttrNumber      attno = 1;
        int                     save_next_resno;
        ListCell   *lc;
-       const char *err;
-       bool            errkind;
 
        if (AGGKIND_IS_ORDERED_SET(agg->aggkind))
        {
index e43b98bc93967be4f0ff992f4541c74d1f3d4d20..21d73b8576e6fba83a41b6672caaefe9a20fec26 100644 (file)
@@ -889,7 +889,6 @@ GTM_BkupBeginTransactionMulti(GTM_IsolationLevel *isolevel,
 {
        GTM_TransactionHandle txn[GTM_MAX_GLOBAL_TRANSACTIONS];;
        MemoryContext oldContext;
-       int kk;
        int count;
 
        oldContext = MemoryContextSwitchTo(TopMostMemoryContext);
index c4f23b7210c20979c9df4e82452b9fe90e82829d..42e90eb7c563771183b6caf39d341c5e5503aa9f 100644 (file)
@@ -2162,7 +2162,6 @@ ProcessSnapshotCommand(GTMProxy_ConnectionInfo *conninfo, GTM_Conn *gtm_conn,
                case MSG_SNAPSHOT_GET_MULTI:
                        {
                                {
-                                       int txn_count = pq_getmsgint(message, sizeof (int));
                                        const char *data = pq_getmsgbytes(message,
                                                        sizeof (GlobalTransactionId));
                                        if (data == NULL)
index 5d5c8d658a6e5ece90a8dd3c8e0ed0ea0dd26e50..4e999bd0020fb10064d08a34dbe5fbac82077445 100644 (file)
@@ -952,7 +952,6 @@ GTM_HandleGlobalXmin(GTM_PGXCNodeType type, char *node_name,
        GTM_PGXCNodeInfo *mynodeinfo;
        int ii;
        GlobalTransactionId global_xmin;
-       bool excludeSelf = false;
        gtm_ListCell *elem;
 
        *errcode = 0;