aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/vo_sdl.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/vo_sdl.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/vo_sdl.c')
-rw-r--r--video/out/vo_sdl.c2
1 files changed, 1 insertions, 1 deletions
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;