From: Willy Tarreau Date: Fri, 16 Oct 2020 15:43:04 +0000 (+0200) Subject: BUILD: listener: avoir a build warning when threads are disabled X-Git-Tag: v2.3-dev7~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0aa5a5b1750638dc7d127023e516d1e24ca44317;p=thirdparty%2Fhaproxy.git BUILD: listener: avoir a build warning when threads are disabled It's just a __decl_thread() that appeared before the last variable. --- diff --git a/src/listener.c b/src/listener.c index 320fc5eb71..85191f50ba 100644 --- a/src/listener.c +++ b/src/listener.c @@ -762,8 +762,8 @@ void listener_accept(struct listener *l) */ for (; max_accept; next_conn = next_feconn = next_actconn = 0, max_accept--) { unsigned int count; - __decl_thread(unsigned long mask); int status; + __decl_thread(unsigned long mask); /* pre-increase the number of connections without going too far. * We process the listener, then the proxy, then the process.