From: Simon Horman Date: Tue, 7 Jun 2011 02:07:50 +0000 (+0900) Subject: [CLEANUP] Remove assigned but unused variables X-Git-Tag: v1.5-dev8~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70735c98f7b8b647d19b052095243417cde088fc;p=thirdparty%2Fhaproxy.git [CLEANUP] Remove assigned but unused variables gcc (Debian 4.6.0-2) 4.6.1 20110329 (prerelease) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... src/proto_http.c:3029:14: warning: variable ‘del_cl’ set but not used [-Wunused-but-set-variable] In file included from ebtree/eb64tree.c:23:0: ebtree/eb64tree.h: In function ‘__eb64_lookup’: ebtree/eb64tree.h:128:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] ebtree/eb64tree.h: In function ‘__eb64i_lookup’: ebtree/eb64tree.h:180:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] In file included from ebtree/ebpttree.h:26:0, from ebtree/ebimtree.c:23: ebtree/eb64tree.h: In function ‘__eb64_lookup’: ebtree/eb64tree.h:128:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] ebtree/eb64tree.h: In function ‘__eb64i_lookup’: ebtree/eb64tree.h:180:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] In file included from ebtree/ebpttree.h:26:0, from ebtree/ebistree.h:25, from ebtree/ebistree.c:23: ebtree/eb64tree.h: In function ‘__eb64_lookup’: ebtree/eb64tree.h:128:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] ebtree/eb64tree.h: In function ‘__eb64i_lookup’: ebtree/eb64tree.h:180:6: warning: variable ‘node_bit’ set but not used [-Wunused-but-set-variable] --- diff --git a/ebtree/eb64tree.h b/ebtree/eb64tree.h index d756e7a571..b31014b26a 100644 --- a/ebtree/eb64tree.h +++ b/ebtree/eb64tree.h @@ -125,7 +125,6 @@ static forceinline struct eb64_node *__eb64_lookup(struct eb_root *root, u64 x) struct eb64_node *node; eb_troot_t *troot; u64 y; - int node_bit; troot = root->b[EB_LEFT]; if (unlikely(troot == NULL)) @@ -142,7 +141,6 @@ static forceinline struct eb64_node *__eb64_lookup(struct eb_root *root, u64 x) } node = container_of(eb_untag(troot, EB_NODE), struct eb64_node, node.branches); - node_bit = node->node.bit; y = node->key ^ x; if (!y) { @@ -177,7 +175,6 @@ static forceinline struct eb64_node *__eb64i_lookup(struct eb_root *root, s64 x) eb_troot_t *troot; u64 key = x ^ (1ULL << 63); u64 y; - int node_bit; troot = root->b[EB_LEFT]; if (unlikely(troot == NULL)) @@ -194,7 +191,6 @@ static forceinline struct eb64_node *__eb64i_lookup(struct eb_root *root, s64 x) } node = container_of(eb_untag(troot, EB_NODE), struct eb64_node, node.branches); - node_bit = node->node.bit; y = node->key ^ x; if (!y) { diff --git a/src/proto_http.c b/src/proto_http.c index 69232f9447..39b7f289f8 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3026,7 +3026,7 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s struct http_req_rule *http_req_last_rule = NULL; struct redirect_rule *rule; struct cond_wordlist *wl; - int del_ka, del_cl, do_stats; + int do_stats; if (unlikely(msg->msg_state < HTTP_MSG_BODY)) { /* we need more data */ @@ -3138,8 +3138,6 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s * are there for the first time. */ - del_cl = del_ka = 0; - if ((!(txn->flags & TX_HDR_CONN_PRS) && (s->fe->options & (PR_O_KEEPALIVE|PR_O_SERVER_CLO|PR_O_HTTP_CLOSE|PR_O_FORCE_CLO))) || ((s->fe->options & (PR_O_KEEPALIVE|PR_O_SERVER_CLO|PR_O_HTTP_CLOSE|PR_O_FORCE_CLO)) !=