]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: properly define ha_dump_backtrace() to avoid a build warning
authorWilly Tarreau <w@1wt.eu>
Fri, 30 May 2025 15:13:21 +0000 (17:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 May 2025 15:15:48 +0000 (17:15 +0200)
commitb88164d9c0eb1540c9b787478162c254ac947e8d
tree81ce64debaa662d18c185f559018fe38e8943527
parent9f4cd435d3d9e691f48ee5bcc0a0a049ce78d93b
BUILD: tools: properly define ha_dump_backtrace() to avoid a build warning

In resolve_sym_name() we declare a few symbols that we want to be able
to resolve. ha_dump_backtrace() was declared with a struct buffer instead
of a pointer to such a struct, which has no effect since we only want to
get the function's pointer, but produces a build warning with LTO, so
let's fix it.

This can be backported to 3.0.
src/tools.c