]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Fri, 16 May 2025 14:43:53 +0000 (16:43 +0200)
commit0a91c6dcaebd41ead51f3654ca96d564ccda32af
treeb9d68452aa92545915d73361eb32b9b636f96bd2
parent1eebf989520a3cd6d85cc121d19dbafeedd075ec
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.
include/haproxy/bug.h