]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: proxy: unstatify the proxies_del_lock to avoid a warning without threads
authorWilly Tarreau <w@1wt.eu>
Thu, 21 May 2026 07:03:03 +0000 (09:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 May 2026 07:03:03 +0000 (09:03 +0200)
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

index 033ba5090352e820304f7626c80b80af18713922..ae1b589a4c97dcabff6f8d028391e4638059d0de 100644 (file)
@@ -69,7 +69,7 @@
 #include <haproxy/uri_auth.h>
 
 /* 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 */