]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: atomics: fix build issue on non-x86/non-arm systems
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Apr 2025 07:36:16 +0000 (09:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Apr 2025 07:38:22 +0000 (09:38 +0200)
commitf01ff2478f674671df75e011f428e0abf794d3dc
treed93fbbb087ec9f78a9a4f11366ea67ae53d78b65
parentab4cd49c042ac1b3aeeef252fdae72213a6df3d2
BUILD: atomics: fix build issue on non-x86/non-arm systems

Commit f435a2e518 ("CLEANUP: atomics: also replace __sync_synchronize()
with __atomic_thread_fence()") replaced the builtins used for barriers,
but the different API required an argument while the macros didn't specify
any, resulting in double parenthesis that were causing obscure build errors
such as "called object type 'void' is not a function or function pointer".
Let's just specify the args for the macro. No backport is needed.
include/haproxy/atomic.h