Warning fixes
authorDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 11:30:05 +0000 (13:30 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 11:30:24 +0000 (13:30 +0200)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/map.c
src/xkbcomp/keytypes.c

index 91712b5..aa6b08b 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -366,7 +366,7 @@ xkb_key_mod_index_is_consumed(struct xkb_state *state, xkb_keycode_t kc,
     xkb_group_index_t group;
     struct xkb_key_type *type;
     unsigned int i;
-    struct xkb_kt_map_entry *entry;
+    struct xkb_kt_map_entry *entry = NULL;
     xkb_mod_mask_t active_mods;
 
     if (!XkbKeycodeInRange(keymap, kc))
index db654b0..878f10e 100644 (file)
@@ -877,6 +877,7 @@ HandleKeyTypesFile(KeyTypesInfo *info, XkbFile *file, enum merge_mode merge)
             log_err(info->keymap->ctx,
                     "Support for changing the default type has been removed; "
                     "Statement ignored\n");
+            ok = true;
             break;
         case STMT_VMOD: /* virtual_modifiers NumLock, ... */
             ok = HandleVModDef((VModDef *) stmt, info->keymap, merge,