]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
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

index 723ea660206d2a4124548cdc1bea425ae9b180e4..aee750b4180c22c1b360305bf9ecc38a157d2c1e 100644 (file)
@@ -5541,7 +5541,7 @@ const void *resolve_sym_name(struct buffer *buf, const char *pfx, const void *ad
                DEF_SYM(poller_pipe_io_handler),
                DEF_SYM(mworker_accept_wrapper),
                DEF_SYM(session_expire_embryonic),
-               DEF_SYM(ha_dump_backtrace, extern void ha_dump_backtrace(struct buffer, const char *, int)),
+               DEF_SYM(ha_dump_backtrace, extern void ha_dump_backtrace(struct buffer *, const char *, int)),
                DEF_SYM(cli_io_handler, extern void cli_io_handler(struct appctx*)),
 #ifdef USE_THREAD
                DEF_SYM(accept_queue_process),