aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
committerGravatar wm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
commit445b3fbf826dd074b1f2a34cddcd3f126462f0d1 (patch)
tree29b51fb3eaa7a2f23d120a265c4f1cc0a1afef1c /video/out/wayland_common.c
parent4b177bd5c22fbeeba9ddae77503ab9938f2503c3 (diff)
buid: readd -Wparentheses
This warning wasn't overly helpful in the past, and warned against perfectly fine code. But at least with recent gcc versions, this is the warning that complains about assignments in if expressions (why???), so we want to enable it. Also change all the code this warning complains about for no reason.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 2d09ad12b0..224a60d1e0 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -418,7 +418,7 @@ static void pointer_handle_button(void *data,
{
struct vo_wayland_state *wl = data;
- mp_input_put_key(wl->vo->input_ctx, MP_MOUSE_BTN0 + (button - BTN_LEFT) |
+ mp_input_put_key(wl->vo->input_ctx, (MP_MOUSE_BTN0 + (button - BTN_LEFT)) |
((state == WL_POINTER_BUTTON_STATE_PRESSED)
? MP_KEY_STATE_DOWN : MP_KEY_STATE_UP));