]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: debug: do not check the isolated_thread variable in non-threaded builds
authorWilly Tarreau <w@1wt.eu>
Sun, 7 May 2023 13:02:30 +0000 (15:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 May 2023 13:02:30 +0000 (15:02 +0200)
commit95e6c9999add657f3359ad82c1814d10e322cb4d
tree6e6acbc880397e5893ee8ed9cac769b19767aac4
parentd8cbfa5ad5e9935f4550705d7f432980b1c7137f
BUILD: debug: do not check the isolated_thread variable in non-threaded builds

The build without thread support was broken by commit b30ced3d8 ("BUG/MINOR:
debug: fix incorrect profiling status reporting in show threads") because
it accesses the isolated_thread variable that is not defined when threads
are disabled. In fact both the test on harmless and this one make no sense
without threads, so let's comment out the block and mark the related
variables as unused.

This may have to be backported to 2.7 if the commit above is.
src/debug.c