MINOR: debug: consume the write() result in BUG_ON() to silence a warning
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Mar 2020 09:58:35 +0000 (10:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Mar 2020 09:58:35 +0000 (10:58 +0100)
commit15ed69fd3fa6c81972b72a4070608f934ef7672e
treebbd12b115efda0baa9cd2bb252b5b0ababcdfd8e
parentf4016683067b6ec31e294dbf0f6c1489baff8bd7
MINOR: debug: consume the write() result in BUG_ON() to silence a warning

Tim reported that BUG_ON() issues warnings on his distro, as the libc marks
some syscalls with __attribute__((warn_unused_result)). Let's pass the
write() result through DISGUISE() to hide it.
include/common/debug.h