]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: listener: fix build warning on global_listener_rwlock without threads
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Nov 2022 08:08:23 +0000 (09:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Nov 2022 08:10:08 +0000 (09:10 +0100)
commit469fa479501f4807d9983ca46618aba3c4ec8cb7
tree85811b6b1746bee84bb17311d365d0bb8fd96f6b
parentc21a187ec00880bb5f660552e0fa211a247df451
BUILD: listener: fix build warning on global_listener_rwlock without threads

The global_listener_rwlock was introduced by recent commit 13e86d947
("BUG/MEDIUM: listener: Fix race condition when updating the global mngmt
task"), but it's declared static and is not used when threads are disabled,
thus causing a warning to be emitted in this case. Let's just condition it
to thread usage to shut the warning.

This will need to be backported where the patch above is backported.
src/listener.c