From e98921fd8dc3aacdb5d9e840838befd90d57feda Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 14 Jun 2019 17:05:55 +1000 Subject: [PATCH] silence unchecked return (cherry picked from commit 134248531c63dd85fa5cc53fe82910148eac8112) --- lib/isc/unix/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 281a4f7acd..78c41fce28 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -3039,7 +3039,7 @@ internal_accept(isc__socket_t *sock) { inc_stats(manager->stats, sock->statsindex[STATID_ACCEPT]); } else { inc_stats(manager->stats, sock->statsindex[STATID_ACCEPTFAIL]); - isc_refcount_decrement(&NEWCONNSOCK(dev)->references); + (void)isc_refcount_decrement(&NEWCONNSOCK(dev)->references); free_socket((isc__socket_t **)&dev->newsocket); } @@ -5162,7 +5162,7 @@ isc_socket_cancel(isc_socket_t *sock0, isc_task_t *task, unsigned int how) { ISC_LIST_UNLINK(sock->accept_list, dev, ev_link); - isc_refcount_decrement( + (void)isc_refcount_decrement( &NEWCONNSOCK(dev)->references); free_socket((isc__socket_t **)&dev->newsocket);