]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] Remove assigned but unused variables
authorSimon Horman <horms@verge.net.au>
Tue, 7 Jun 2011 02:07:50 +0000 (11:07 +0900)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Jun 2011 18:21:33 +0000 (20:21 +0200)
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 â\80\98del_clâ\80\99 set but not used [-Wunused-but-set-variable]
In file included from ebtree/eb64tree.c:23:0:
ebtree/eb64tree.h: In function â\80\98__eb64_lookupâ\80\99:
ebtree/eb64tree.h:128:6: warning: variable â\80\98node_bitâ\80\99 set but not used [-Wunused-but-set-variable]
ebtree/eb64tree.h: In function â\80\98__eb64i_lookupâ\80\99:
ebtree/eb64tree.h:180:6: warning: variable â\80\98node_bitâ\80\99 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 â\80\98__eb64_lookupâ\80\99:
ebtree/eb64tree.h:128:6: warning: variable â\80\98node_bitâ\80\99 set but not used [-Wunused-but-set-variable]
ebtree/eb64tree.h: In function â\80\98__eb64i_lookupâ\80\99:
ebtree/eb64tree.h:180:6: warning: variable â\80\98node_bitâ\80\99 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 â\80\98__eb64_lookupâ\80\99:
ebtree/eb64tree.h:128:6: warning: variable â\80\98node_bitâ\80\99 set but not used [-Wunused-but-set-variable]
ebtree/eb64tree.h: In function â\80\98__eb64i_lookupâ\80\99:
ebtree/eb64tree.h:180:6: warning: variable â\80\98node_bitâ\80\99 set but not used [-Wunused-but-set-variable]

ebtree/eb64tree.h
src/proto_http.c

index d756e7a571c7fbe9939dd3fd3b5461ac6bdd32e7..b31014b26a441cc2d275dc5ae841b6a53e620093 100644 (file)
@@ -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) {
index 69232f9447297d99c06ba5f15d2fc0343b0d0e45..39b7f289f8b44a338e8a9030e4367da3c8c15a45 100644 (file)
@@ -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)) !=