From 2174cbfa2fd153e7a77ba5ef7167d2bf99057330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 7 Jul 2011 23:41:42 +0200 Subject: cleanup: silence most of the clang warnings --- input/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 94c15f42bb..14d31775b0 100644 --- a/input/input.c +++ b/input/input.c @@ -646,7 +646,7 @@ static const m_option_t input_conf[] = { }; static const m_option_t mp_input_opts[] = { - { "input", &input_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, + { "input", (void *)&input_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, OPT_MAKE_FLAGS("joystick", input.use_joystick, CONF_GLOBAL), OPT_MAKE_FLAGS("lirc", input.use_lirc, CONF_GLOBAL), OPT_MAKE_FLAGS("lircc", input.use_lircc, CONF_GLOBAL), @@ -1487,7 +1487,7 @@ int mp_input_get_key_from_name(const char *name) { int modifiers = 0; const char *p; - while (p = strchr(name, '+')) { + while ((p = strchr(name, '+'))) { for (struct mp_key_name *m = modifier_names; m->name; m++) if (!bstrcasecmp(BSTR(m->name), (struct bstr){(char *)name, p - name})) { modifiers |= m->key; -- cgit v1.2.3