From 2a433cb00d4c61f46a2abd298ebe4144cc3975e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 7 Apr 2020 21:46:52 +0200 Subject: [PATCH] Explicit ignore result of read/write in oom wrapper --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 6cf4080..6a65bba 100644 --- a/src/util.c +++ b/src/util.c @@ -424,8 +424,8 @@ void addparentstats(struct dir *d, int64_t size, int64_t asize, uint64_t mtime, char buf[128];\ while((ptr = f) == NULL) {\ close_nc();\ - write(2, oom_msg, sizeof(oom_msg));\ - read(0, buf, sizeof(buf));\ + (void) !write(2, oom_msg, sizeof(oom_msg));\ + (void) !read(0, buf, sizeof(buf));\ }\ return ptr;