]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: leastconn: fix build warning when building without threads on old machines
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2025 14:48:42 +0000 (16:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2025 14:50:34 +0000 (16:50 +0200)
commitaa49965d4e6d51f5b10c6136df9f8fa50e6477b5
treed6011d7678304b9db079f3bc91f9977fa51bffe8
parent589d916efa2bf523db9e890eb9a6d0d9faee7e10
BUILD: leastconn: fix build warning when building without threads on old machines

Machines lacking CAS8B/DWCAS and emit a warning in lb_fwlc.c without
threads due to declaration ordering. Let's just move the variable
declaration into the block that uses it as a last variable. No
backport is needed.
src/lb_fwlc.c