From: Christian Göttsche Date: Mon, 6 Apr 2020 14:27:45 +0000 (+0200) Subject: [Minor] Explicit specify order of binary operations X-Git-Tag: 2.6~531^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3332%2Fhead;p=thirdparty%2Frspamd.git [Minor] Explicit specify order of binary operations ../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); | ~~~~~~~~~~^~~~~~~~~~~~~ --- 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;