mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
config: fix clang warning
This commit is contained in:
parent
c42497aca0
commit
e6fbb3c6bb
1 changed files with 2 additions and 4 deletions
|
@ -968,13 +968,12 @@ static void translate_binding_list(list_t *bindings, list_t *bindsyms,
|
||||||
struct sway_binding *binding = bindings->items[i];
|
struct sway_binding *binding = bindings->items[i];
|
||||||
translate_binding(binding);
|
translate_binding(binding);
|
||||||
|
|
||||||
list_t *bindings;
|
|
||||||
switch (binding->type) {
|
switch (binding->type) {
|
||||||
case BINDING_KEYSYM:
|
case BINDING_KEYSYM:
|
||||||
bindings = bindsyms;
|
binding_add_translated(binding, bindsyms);
|
||||||
break;
|
break;
|
||||||
case BINDING_KEYCODE:
|
case BINDING_KEYCODE:
|
||||||
bindings = bindcodes;
|
binding_add_translated(binding, bindcodes);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sway_assert(false, "unexpected translated binding type: %d",
|
sway_assert(false, "unexpected translated binding type: %d",
|
||||||
|
@ -982,7 +981,6 @@ static void translate_binding_list(list_t *bindings, list_t *bindsyms,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
binding_add_translated(binding, bindings);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue