BUILD: debug: mark ha_crash_now() as attribute(noreturn)
authorWilly Tarreau <w@1wt.eu>
Fri, 16 May 2025 14:12:12 +0000 (16:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 May 2025 14:46:12 +0000 (16:46 +0200)
commit1f479b8aac0323e671fdb707769089e684c0c6bb
tree670a50d2939278c14ef1d8a0b93c290588d5ac30
parentfd54c8ce6fb977e4591b73f677caf5743964bb45
BUILD: debug: mark ha_crash_now() as attribute(noreturn)

Building on MIPS64 with clang16 incorrectly reports some uninitialized
value warnings in stats-proxy.c due to some calls to ABORT_NOW() where
the compiler didn't know the code wouldn't return. Let's properly mark
the function as noreturn, and take this opportunity for also marking it
unused to avoid possible warnings depending on the build options (if
ABORT_NOW is not used). No backport needed though it will not harm.

(cherry picked from commit 0a91c6dcaebd41ead51f3654ca96d564ccda32af)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/bug.h