]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: haring: automatically disable DEBUG_STRICT
authorWilly Tarreau <w@1wt.eu>
Thu, 4 May 2023 06:09:02 +0000 (08:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 May 2023 06:09:02 +0000 (08:09 +0200)
commit46e0ea33e2fe8d2f8a8df214bf0484b2b46e1fdf
treef1b568faeab3db920be887d58928164c89dbd037
parent8b3e39e37be488ccdfce449bec24e7ced59ff9f3
DEV: haring: automatically disable DEBUG_STRICT

Ideally haring should be compiled with the same options as haproxy so
that ring headers have the same size (e.g. with/without locks, with/
without lock debugging). But when enabling DEBUG_STRICT, BUG_ON() is
enabled and breaks the build by making references to complain() and
ha_backtrace_to_stderr().

Let's just disable DEBUG_STRICT before opening include files. This is
sufficient to address the problem.

This may be backorted to older versions that include haring.
dev/haring/haring.c