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.
This commit is contained in:
Willy Tarreau 2026-05-21 09:03:03 +02:00
parent 050e06dd66
commit 3475a5bb9f

View 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 */