]> git.kaiwu.me - haproxy.git/commit
BUILD: Silence gcc warning about unused return value
authorTim Duesterhus <tim@bastelstu.be>
Wed, 12 Jun 2019 18:47:30 +0000 (20:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Jun 2019 13:47:41 +0000 (15:47 +0200)
commitdda1155ed7a295889ed1e1741a60851d74a49d04
tree9db831de7ba4c7c64cab66fbcf9139721fe61453
parentc5473e507e24f1c89668ff6467c5457e1d7b0967
BUILD: Silence gcc warning about unused return value

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

complains:

> src/debug.c: In function "ha_panic":
> src/debug.c:162:2: warning: ignoring return value of "write", declared with attribute warn_unused_result [-Wunused-result]
>  (void) write(2, trash.area, trash.data);
>    ^
src/debug.c