xkbcomp/keymap: silence a gcc warning
src/xkbcomp/keymap.c:127:12: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized] Not really, but why not. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
38654f5e74
commit
094f1dc29a
|
@ -95,7 +95,7 @@ FindInterpForKey(struct xkb_keymap *keymap, const struct xkb_key *key,
|
|||
*/
|
||||
darray_foreach(interp, keymap->sym_interprets) {
|
||||
xkb_mod_mask_t mods;
|
||||
bool found;
|
||||
bool found = false;
|
||||
|
||||
if ((num_syms > 1 || interp->sym != syms[0]) &&
|
||||
interp->sym != XKB_KEY_NoSymbol)
|
||||
|
|
Loading…
Reference in New Issue