Silence 'fwarn_unused_result' warning. - catpoint - Catpoint simple presenting … | |
git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrin… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit a09f93d317d1d5a400e46806b0c066170632961a | |
parent fff6e681e69d648d231c8ff98df5f0ffa2629120 | |
Author: Troels Henriksen <[email protected]> | |
Date: Sun, 4 Aug 2024 18:20:25 +0200 | |
Silence 'fwarn_unused_result' warning. | |
There is nothing meaningful you can do with the return value in this | |
case. | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M catpoint.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/catpoint.c b/catpoint.c | |
@@ -57,7 +57,7 @@ die(const char *fmt, ...) | |
if (saved_errno) | |
fprintf(stderr, ": %s", strerror(saved_errno)); | |
fflush(stderr); | |
- write(2, "\n", 1); | |
+ (void)!write(2, "\n", 1); | |
_exit(1); | |
} |