From: Tomas Vondra Date: Tue, 1 Mar 2016 02:29:42 +0000 (+0100) Subject: eliminate variables that are not used at all X-Git-Tag: XL9_5_R1BETA2~32 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9200b0462b181b6d55d0042371bdcd98ac812700;p=postgres-xl.git eliminate variables that are not used at all --- diff --git a/src/backend/parser/parse_agg.c b/src/backend/parser/parse_agg.c index d78f96a0b6..e2e12bfea8 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;