eliminate variables that are only set (but not used)
authorTomas Vondra <[email protected]>
Tue, 1 Mar 2016 02:23:41 +0000 (03:23 +0100)
committerPavan Deolasee <[email protected]>
Fri, 11 Mar 2016 06:23:42 +0000 (11:53 +0530)
src/gtm/common/mcxt.c
src/gtm/main/gtm_txn.c

index aad4bcd8e6b8fa00149b81c0d707ba8411aa2d5f..64618958939b9dc6e96010f52a9ad7b6f98a043b 100644 (file)
@@ -66,8 +66,6 @@ MemoryContext TopMostMemoryContext;
 void
 MemoryContextInit(void)
 {
-       void *thrinfo;
-
        AssertState(TopMemoryContext == NULL);
 
        /*
@@ -92,7 +90,6 @@ MemoryContextInit(void)
         * Not having any other place to point CurrentMemoryContext, make it point
         * to TopMemoryContext.  Caller should change this soon!
         */
-       thrinfo = GetMyThreadInfo;
        CurrentMemoryContext = TopMemoryContext;
 
        /*
index 6e5973dc3ff0fc7f33283d77e6c270cfc60c1f57..e43b98bc93967be4f0ff992f4541c74d1f3d4d20 100644 (file)
@@ -888,13 +888,10 @@ GTM_BkupBeginTransactionMulti(GTM_IsolationLevel *isolevel,
                                                          int   txn_count)
 {
        GTM_TransactionHandle txn[GTM_MAX_GLOBAL_TRANSACTIONS];;
-       GTM_TransactionInfo *gtm_txninfo;
        MemoryContext oldContext;
        int kk;
        int count;
 
-       gtm_txninfo = NULL;
-
        oldContext = MemoryContextSwitchTo(TopMostMemoryContext);
 
        count = GTM_BeginTransactionMulti(isolevel, readonly,
@@ -2039,7 +2036,6 @@ ProcessGetGIDDataTransactionCommand(Port *myport, StringInfo message)
 
        if (GetMyThreadInfo->thr_conn->standby)
        {
-               int _rc;
                GTM_Conn *oldconn = GetMyThreadInfo->thr_conn->standby;
                int count = 0;
                GTM_Timestamp timestamp;
@@ -2059,7 +2055,7 @@ retry:
                 * instead of writing a routine specific to MSG_TXN_GET_GID_DATA
                 * message
                 */ 
-               _rc = bkup_begin_transaction_gxid(GetMyThreadInfo->thr_conn->standby,
+               bkup_begin_transaction_gxid(GetMyThreadInfo->thr_conn->standby,
                                   gxid,
                                   txn_isolation_level,
                                   false,