]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: debug: silence a build warning with threads disabled
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2024 13:04:25 +0000 (15:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2024 14:12:46 +0000 (16:12 +0200)
commitf163cbfb7f893a06d158880a753cad01908143d8
treeb2eff963b5d7b1af9e654a08cc9609a5799769b3
parent5db761f70955a84754030819db09326beb97cdf0
BUILD: debug: silence a build warning with threads disabled

Commit 091de0f9b2 ("MINOR: debug: slightly change the thread_dump_pointer
signification") caused the following warning to be emitted when threads
are disabled:

  src/debug.c: In function 'ha_thread_dump_one':
  src/debug.c:359:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Let's just disguise the pointer to silence it. It should be backported
where the patch above was backported, since it was part of a series aiming
at making thread dumps more exploitable from core dumps.
src/debug.c