Explicit ignore result of read/write in oom wrapper

This commit is contained in:
Christian Göttsche 2020-04-07 21:46:52 +02:00
parent b281f6627a
commit 2a433cb00d

View file

@ -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;