Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2020 20:50:01 GMT
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 322a188d45f1 - wmt: quiet gcc -Wparentheses
Message-ID:  <202012242050.0BOKo1Ii083890@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rlibby:

URL: https://cgit.FreeBSD.org/src/commit/?id=322a188d45f17457f0de00a78c77228751dff03c

commit 322a188d45f17457f0de00a78c77228751dff03c
Author:     Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2020-12-24 20:49:27 +0000
Commit:     Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2020-12-24 20:49:27 +0000

    wmt: quiet gcc -Wparentheses
    
    Reviewed by:    wulf
    Sponsored by:   Dell EMC Isilon
    Differential Revision:  https://reviews.freebsd.org/D27767
---
 sys/dev/usb/input/wmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/input/wmt.c b/sys/dev/usb/input/wmt.c
index 788341df288c..62e56fe026ca 100644
--- a/sys/dev/usb/input/wmt.c
+++ b/sys/dev/usb/input/wmt.c
@@ -635,7 +635,7 @@ wmt_process_report(struct wmt_softc *sc, uint8_t *buf, int len)
 			left_btn = hid_get_data(buf, len, &sc->btn_loc[0]);
 		if (sc->has_int_button || isset(sc->buttons, 0))
 			evdev_push_key(sc->evdev, BTN_LEFT,
-			    int_btn != 0 | left_btn != 0);
+			    (int_btn != 0) | (left_btn != 0));
 		for (btn = 1; btn < sc->max_button; ++btn) {
 			if (isset(sc->buttons, btn))
 				evdev_push_key(sc->evdev, BTN_MOUSE + btn,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012242050.0BOKo1Ii083890>