--- gail/gailentry.c
+++ gail/gailentry.c
@@ -1339,6 +1339,7 @@
         if (!set)
           return NULL;
         relation = atk_relation_set_get_relation_by_type (set, ATK_RELATION_LABELLED_BY);
+        label = NULL;
         if (relation)
           {              
             target = atk_relation_get_target (relation);
@@ -1349,8 +1350,6 @@
                 label = GTK_ACCESSIBLE (target_object)->widget;
               } 
           }
-        else
-          label = NULL;
 
         g_object_unref (set);
 
--- gail/gailitem.c
+++ gail/gailitem.c
@@ -29,7 +29,7 @@
                                                         gint          i);
 static void                  gail_item_real_initialize (AtkObject     *obj,
                                                         gpointer      data);
-static gint                  gail_item_label_map_gtk   (GtkWidget     *widget,
+static void                  gail_item_label_map_gtk   (GtkWidget     *widget,
                                                         gpointer      data);
 static void                  gail_item_finalize        (GObject       *object);
 static void                  gail_item_init_textutil   (GailItem      *item,
--- gail/gailtreeview.c
+++ gail/gailtreeview.c
@@ -4155,7 +4155,7 @@
            GtkTreePath       *path,
            gint              actual_column)
 {
-  gint depth;
+  gint depth = 0;
   gint index = 1;
   gint *indices = NULL;;
 
