summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2016-03-01 02:29:42 +0000
committerPavan Deolasee2016-10-18 10:00:50 +0000
commit5c64d19235b700e02f9e114022f62c2373446705 (patch)
treef1213aa6f575932fd1d48c17788adc689c51eb08
parentf3046b0fbc3e91f4fd6a2aad8f11d9bc13564404 (diff)
eliminate variables that are not used at all
-rw-r--r--src/backend/parser/parse_agg.c2
-rw-r--r--src/gtm/main/gtm_txn.c1
-rw-r--r--src/gtm/proxy/proxy_main.c1
-rw-r--r--src/gtm/recovery/register_common.c1
4 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/parser/parse_agg.c b/src/backend/parser/parse_agg.c
index 27ff27a937..4812fb1a67 100644
--- a/src/backend/parser/parse_agg.c
+++ b/src/backend/parser/parse_agg.c
@@ -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))
{
diff --git a/src/gtm/main/gtm_txn.c b/src/gtm/main/gtm_txn.c
index e43b98bc93..21d73b8576 100644
--- a/src/gtm/main/gtm_txn.c
+++ b/src/gtm/main/gtm_txn.c
@@ -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);
diff --git a/src/gtm/proxy/proxy_main.c b/src/gtm/proxy/proxy_main.c
index c4f23b7210..42e90eb7c5 100644
--- a/src/gtm/proxy/proxy_main.c
+++ b/src/gtm/proxy/proxy_main.c
@@ -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)
diff --git a/src/gtm/recovery/register_common.c b/src/gtm/recovery/register_common.c
index 5d5c8d658a..4e999bd002 100644
--- a/src/gtm/recovery/register_common.c
+++ b/src/gtm/recovery/register_common.c
@@ -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;