]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: compiler: add a new statement "__unreachable()"
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 09:53:34 +0000 (11:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 11:24:43 +0000 (13:24 +0200)
commit8d26f02e693121764bfa0cb48c9a7ab31e17225d
treee3b7df59e9a0c0f515503d3355324e51ae1e3e41
parente5f229e6392fd54aaba7fe58f457723c16b9d15f
BUILD: compiler: add a new statement "__unreachable()"

This statement is used as a hint for the compiler so that it knows that
the location where it's placed cannot be reached. It will mostly be used
after longjmp() or equivalent statements that deal with error processing
and that the compiler doesn't know will not return on certain conditions,
so that it doesn't complain about null dereferences on error paths.
include/common/compiler.h