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)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Jun 2025 06:03:53 +0000 (08:03 +0200)
commitbcdd08b328bc92c0aaaf5f5215ff98f9f728e514
tree3494ba364ad8488add1cb0b0af074af2b453def9
parent783eb780f3fcb9489453ce4200f65702a8c9e195
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.

(cherry picked from commit b88164d9c0eb1540c9b787478162c254ac947e8d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6330c20026e79f54a6ead77d6c9573945a074744)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 30e59abd95cf22d755791fcd167c6e80d0b2d805)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/tools.c