diff --git a/shell/cc-shell-category-view.c b/shell/cc-shell-category-view.c
index 436e166..09d016d 100644
--- a/shell/cc-shell-category-view.c
+++ b/shell/cc-shell-category-view.c
@@ -140,11 +140,9 @@ static void
 cc_shell_category_view_constructed (GObject *object)
 {
   CcShellCategoryViewPrivate *priv = CC_SHELL_CATEGORY_VIEW (object)->priv;
-  GtkWidget *iconview, *vbox, *self;
+  GtkWidget *iconview, *vbox;
   GtkWidget *alignment;
 
-  self = GTK_WIDGET (object);
-
   iconview = cc_shell_item_view_new ();
   gtk_icon_view_set_model (GTK_ICON_VIEW (iconview), priv->model);
 
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 4d3ad8f..4940f66 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -643,7 +643,6 @@ fill_model (GnomeControlCenter *shell)
 static void
 load_panel_plugins (GnomeControlCenter *shell)
 {
-  GType panel_type;
   GList *modules;
 
   /* only allow this function to be run once to prevent modules being loaded
@@ -653,7 +652,7 @@ load_panel_plugins (GnomeControlCenter *shell)
     return;
 
   /* make sure the base type is registered */
-  panel_type = g_type_from_name ("CcPanel");
+  g_type_from_name ("CcPanel");
 
   shell->priv->extension_point
     = g_io_extension_point_register (CC_SHELL_PANEL_EXTENSION_POINT);
