]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: add a new DISGUISE() macro to pass a value as identity
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Mar 2020 09:42:26 +0000 (10:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Mar 2020 09:52:46 +0000 (10:52 +0100)
commitf4016683067b6ec31e294dbf0f6c1489baff8bd7
tree207b486836a98f14641e9d8951f7003c64d0ad3e
parent663825e5d00e5dfc928822e9a8f9084b51705551
MINOR: debug: add a new DISGUISE() macro to pass a value as identity

This does exactly the same as ALREADY_CHECKED() but does it inline,
returning an identical copy of the scalar variable without letting
the compiler know how it might have been transformed. This can
forcefully disable certain null-pointer checks or result checks when
known undesirable. Typically forcing a crash with *(DISGUISE(NULL))=0
will not cause a null-deref warning.
include/common/compiler.h