aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libev
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:41 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:16:25 +0200
commit765813e908e0f23e98ec6224b0408a152a9d3ec0 (patch)
tree1e4140aa1a097fe081b05d74334f95973a309e28 /contrib/libev
parentd6da3282ea865b8c39fab3e7026296fa922e1a64 (diff)
downloadrspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.tar.gz
rspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.zip
[Minor] silence warnings about unused function results
GCC does not respect `(void) func()`
Diffstat (limited to 'contrib/libev')
-rw-r--r--contrib/libev/ev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c
index 12eafd8a4..533b19e3d 100644
--- a/contrib/libev/ev.c
+++ b/contrib/libev/ev.c
@@ -2808,7 +2808,7 @@ evpipe_write (EV_P_ EV_ATOMIC_T *flag)
if (evpipe [0] < 0)
{
uint64_t counter = 1;
- write (evpipe [1], &counter, sizeof (uint64_t));
+ (void) !write (evpipe [1], &counter, sizeof (uint64_t));
}
else
#endif
@@ -2820,7 +2820,7 @@ evpipe_write (EV_P_ EV_ATOMIC_T *flag)
buf.len = 1;
WSASend (EV_FD_TO_WIN32_HANDLE (evpipe [1]), &buf, 1, &sent, 0, 0, 0);
#else
- write (evpipe [1], &(evpipe [1]), 1);
+ (void) !write (evpipe [1], &(evpipe [1]), 1);
#endif
}
@@ -2841,7 +2841,7 @@ pipecb (EV_P_ ev_io *iow, int revents)
if (evpipe [0] < 0)
{
uint64_t counter;
- read (evpipe [1], &counter, sizeof (uint64_t));
+ (void) !read (evpipe [1], &counter, sizeof (uint64_t));
}
else
#endif
@@ -2855,7 +2855,7 @@ pipecb (EV_P_ ev_io *iow, int revents)
buf.len = sizeof (dummy);
WSARecv (EV_FD_TO_WIN32_HANDLE (evpipe [0]), &buf, 1, &recvd, &flags, 0, 0);
#else
- read (evpipe [0], &dummy, sizeof (dummy));
+ (void) !read (evpipe [0], &dummy, sizeof (dummy));
#endif
}
}