From 1e1044e8bbcba0e65db54533f0569421f355f052 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 2 Jan 2014 18:14:35 +0100 Subject: MINOR: remove a warning about an unused variable httpterm.c: In function 'cfg_parse_listen': httpterm.c:3412:6: warning: variable 'do_check' set but not used [-Wunused-but-set-variable] --- httpterm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/httpterm.c b/httpterm.c index 2328022..2c22224 100644 --- a/httpterm.c +++ b/httpterm.c @@ -3405,7 +3405,6 @@ int cfg_parse_listen(const char *file, int linenum, char **args) { } else if (!strcmp(args[0], "object")) { int cur_arg; - int do_check; if (curproxy == &defproxy) { Alert("parsing [%s:%d] : '%s' not allowed in 'defaults' section.\n", file, linenum, args[0]); @@ -3427,8 +3426,6 @@ int cfg_parse_listen(const char *file, int linenum, char **args) { curproxy->srv = newsrv; newsrv->proxy = curproxy; - do_check = 0; - newsrv->resp_cache = 1; newsrv->resp_code = 200; newsrv->resp_size = -1; /* not yet set */ -- 1.7.12.1