mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-25 10:42:14 -04:00
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:
parent
050e06dd66
commit
3475a5bb9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue