BUILD: Fix build when using clang without optimizing.
authorOlivier Houchard <cognet@ci0.org>
Fri, 5 Mar 2021 15:42:14 +0000 (16:42 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 5 Mar 2021 15:58:56 +0000 (16:58 +0100)
commit7b00e31509c46d70ddc55189ebf22d691cbea266
tree801e4f4426da6d25b1968eb112712bc820190db4
parent249f0562cf2654488100d83d66c73902a2b1eb6c
BUILD: Fix build when using clang without optimizing.

ha_free() uses code that attempts to set a non-existant variable to provoke
a link-time error, with the expectation that the compiler will not omit that
if the code is unreachable. However, clang will emit it when compiling with
no optimization, so only do that if __OPTIMIZE__ is defined.
include/haproxy/bug.h