From: Willy Tarreau Date: Thu, 21 May 2026 07:03:03 +0000 (+0200) Subject: BUILD: proxy: unstatify the proxies_del_lock to avoid a warning without threads X-Git-Tag: v3.4-dev14~80 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3475a5bb9f12fa5ca736d54d0cf1e0ecb3f13ce6;p=thirdparty%2Fhaproxy.git BUILD: proxy: unstatify the proxies_del_lock to avoid a warning without threads When threads are disabled, "static __decl_spinlock(foo);" ends up as "static;", causing a build warning when threads are disabled. We don't need it to be static so let's drop "static" here. No backport is needed, this is 3.4-only. --- diff --git a/src/proxy.c b/src/proxy.c index 033ba5090..ae1b589a4 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -69,7 +69,7 @@ #include /* Lock to ensure multiple backends deletion concurrently is safe */ -static __decl_spinlock(proxies_del_lock); +__decl_spinlock(proxies_del_lock); int listeners; /* # of proxy listeners, set by cfgparse */ struct proxy *proxies_list = NULL; /* list of main proxies */