commit | f4016683067b6ec31e294dbf0f6c1489baff8bd7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Mar 14 10:42:26 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Mar 14 10:52:46 2020 +0100 |
tree | 207b486836a98f14641e9d8951f7003c64d0ad3e | |
parent | 663825e5d00e5dfc928822e9a8f9084b51705551 [diff] |
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.