From 445b3fbf826dd074b1f2a34cddcd3f126462f0d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Mar 2015 19:09:25 +0100 Subject: 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. --- video/out/vo_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_sdl.c') diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 9a06f2e3c4..8bde820b38 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -575,7 +575,7 @@ static int wait_events(struct vo *vo, int64_t until_time_us) if (sdl_mod & (KMOD_LCTRL | KMOD_RCTRL)) mpv_mod |= MP_KEY_MODIFIER_CTRL; if ((sdl_mod & KMOD_LALT) || - (sdl_mod & KMOD_RALT) && !mp_input_use_alt_gr(vo->input_ctx)) + ((sdl_mod & KMOD_RALT) && !mp_input_use_alt_gr(vo->input_ctx))) mpv_mod |= MP_KEY_MODIFIER_ALT; if (sdl_mod & (KMOD_LGUI | KMOD_RGUI)) mpv_mod |= MP_KEY_MODIFIER_META; -- cgit v1.2.3