From b29b85055e05b1e2f5112ca93c7c6b4673ff42ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 6 Apr 2020 16:27:45 +0200 Subject: [PATCH] [Minor] Explicit specify order of binary operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../contrib/libev/ev.c: In function ‘ev_io_start’: ../contrib/libev/ev.c:4396:34: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] 4396 | fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); | ~~~~~~~~~~^~~~~~~~~~~~~ --- contrib/libev/ev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c index 3aab45006e..e569a010c4 100644 --- a/contrib/libev/ev.c +++ b/contrib/libev/ev.c @@ -4388,7 +4388,7 @@ ev_io_start (EV_P_ ev_io *w) EV_NOEXCEPT /* common bug, apparently */ assert (("libev: ev_io_start called with corrupted watcher", ((WL)w)->next != (WL)w)); - fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); + fd_change (EV_A_ fd, (w->events & EV__IOFDSET) | EV_ANFD_REIFY); w->events &= ~EV__IOFDSET; EV_FREQUENT_CHECK; -- 2.47.3