BUILD: debug: fix build warning by consuming the write() result
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2021 14:58:26 +0000 (15:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2021 14:58:26 +0000 (15:58 +0100)
commit2cbe2e7f84a680f30383c2fee38577091e4394a9
tree0a1f72f20dd33471f6c7174631f5ad9aa418dee8
parent2bfce7e424db23392302b925670b8486af925a9f
BUILD: debug: fix build warning by consuming the write() result

When writing commit a8459b28c ("MINOR: debug: create
ha_backtrace_to_stderr() to dump an instant backtrace") I just forgot
that some distros are a bit extremist about the syscall return values.

  src/debug.c: In function `ha_backtrace_to_stderr':
  src/debug.c:147:3: error: ignoring return value of `write', declared with attribute warn_unused_result [-Werror=unused-result]
     write(2, b.area, b.data);
     ^~~~~~~~~~~~~~~~~~~~~~~~
CC src/h1_htx.o

Let's apply the usual tricks to shut them up. No backport is needed.
src/debug.c