package haproxy: fix gcc 4.7 warning
[openwrt/svn-archive/archive.git] / net / haproxy / patches / 0011-BUILD-proto_tcp-remove-a-harmless-warning.patch
1 From 3b6ebfec1b72148c9628525f6ebe2e6d184960b1 Mon Sep 17 00:00:00 2001
2 From: Willy Tarreau <w@1wt.eu>
3 Date: Fri, 6 Dec 2013 22:20:57 +0100
4 Subject: [PATCH 11/11] BUILD: proto_tcp: remove a harmless warning
5
6 The "pol" variable was not used and gcc 4.7 emits a warning on it.
7 ---
8 src/proto_tcp.c | 2 --
9 1 file changed, 2 deletions(-)
10
11 diff --git a/src/proto_tcp.c b/src/proto_tcp.c
12 index 0158a02..d279669 100644
13 --- a/src/proto_tcp.c
14 +++ b/src/proto_tcp.c
15 @@ -870,7 +870,6 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
16 if (!strcmp(args[1], "content")) {
17 int action;
18 int warn = 0;
19 - int pol = ACL_COND_NONE;
20 struct acl_cond *cond;
21 struct tcp_rule *rule;
22
23 @@ -891,7 +890,6 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
24 return -1;
25 }
26
27 - pol = ACL_COND_NONE;
28 cond = NULL;
29
30 if (strcmp(args[3], "if") == 0 || strcmp(args[3], "unless") == 0) {
31 --
32 1.8.1.5
33