From 3475a5bb9f12fa5ca736d54d0cf1e0ecb3f13ce6 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 21 May 2026 09:03:03 +0200 Subject: [PATCH] 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. --- src/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3