diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 63f8723..4fbcefb 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -392,8 +392,6 @@ update_timezone (CcDateTimePanel *self)
 {
   CcDateTimePanelPrivate *priv = self->priv;
   GtkWidget *widget;
-  time_t t;
-  struct tm *ltime;
   gchar **split;
   GtkTreeIter iter;
   GtkTreeModel *model;
@@ -401,9 +399,6 @@ update_timezone (CcDateTimePanel *self)
   /* tz.c updates the local timezone, which means the spin buttons can be
    * updated with the current time of the new location */
 
-  t = time (NULL);
-  ltime = localtime (&t);
-
   split = g_strsplit (priv->current_location->zone, "/", 2);
 
   /* remove underscores */
diff --git a/panels/datetime/set-timezone.c b/panels/datetime/set-timezone.c
index 5aafced..74006bc 100644
--- a/panels/datetime/set-timezone.c
+++ b/panels/datetime/set-timezone.c
@@ -423,7 +423,6 @@ get_system_timezone_async (GetTimezoneFunc callback,
 gboolean
 get_using_ntp (void)
 {
-	static gboolean can_use_cache = FALSE;
 	static gboolean is_using_cache = FALSE;
 	static time_t   last_refreshed = 0;
 	time_t          now;
@@ -450,7 +449,6 @@ get_using_ntp (void)
 				       G_TYPE_BOOLEAN, &cu,
 				       G_TYPE_BOOLEAN, &iu,
 				       G_TYPE_INVALID)) {
-			can_use_cache = cu;
 			is_using_cache = iu;
 			last_refreshed = now;
 		}
diff --git a/panels/datetime/tz.c b/panels/datetime/tz.c
index 3e6c8ae..67fbef8 100644
--- a/panels/datetime/tz.c
+++ b/panels/datetime/tz.c
@@ -196,18 +196,21 @@ tz_location_get_utc_offset (TzLocation *loc)
 gint
 tz_location_set_locally (TzLocation *loc)
 {
+#if 0
 	time_t curtime;
 	struct tm *curzone;
 	gboolean is_dst = FALSE;
+#endif
 	gint correction = 0;
 
 	g_return_val_if_fail (loc != NULL, 0);
 	g_return_val_if_fail (loc->zone != NULL, 0);
 	
+#if 0
 	curtime = time (NULL);
 	curzone = localtime (&curtime);
 	is_dst = curzone->tm_isdst;
-
+#endif
 	setenv ("TZ", loc->zone, 1);
 #if 0
 	curtime = time (NULL);
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index c51a0eb..2939337 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -251,7 +251,6 @@ add_key (GtkWidget *widget,
   GtkComboBox *box = GTK_COMBO_BOX (widget);
   GtkTreeModel *model = gtk_combo_box_get_model (box);
   GtkListStore *store = GTK_LIST_STORE (model);
-  gboolean retval;
 
   info.text = text;
   info.found = FALSE;
@@ -270,11 +269,6 @@ add_key (GtkWidget *widget,
                                          5, rotation,
                                          -1);
 
-      retval = TRUE;
-    }
-  else
-    {
-      retval = FALSE;
     }
 }
 
@@ -682,7 +676,9 @@ rebuild_resolution_combo (App *app)
 static void
 rebuild_gui (App *app)
 {
+#if 0
   gboolean sensitive;
+#endif
 
   /* We would break spectacularly if we recursed, so
    * just assert if that happens
@@ -691,9 +687,9 @@ rebuild_gui (App *app)
 
   app->ignore_gui_changes = TRUE;
 
+#if 0
   sensitive = app->current_output ? TRUE : FALSE;
 
-#if 0
   g_debug ("rebuild gui, is on: %d", app->current_output->on);
 #endif
 
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 55a71a3..751ffa9 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -350,29 +350,6 @@ get_graphics_info (void)
 }
 
 static gboolean
-get_is_graphics_accelerated (void)
-{
-  GError *error = NULL;
-  gchar *is_accelerated_binary;
-  gchar *argv[2];
-  gint estatus;
-
-  is_accelerated_binary = g_build_filename (LIBEXECDIR, "gnome-session-is-accelerated", NULL);
-
-  error = NULL;
-  argv[0] = is_accelerated_binary;
-  argv[G_N_ELEMENTS(argv)] = NULL;
-
-  g_spawn_sync (NULL, argv, NULL, G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL,
-                NULL, NULL, NULL, NULL, &estatus, &error);
-  if (error != NULL || estatus != 0)
-    return FALSE;
-  else
-    return TRUE;
-
-}
-
-static gboolean
 get_current_is_fallback (CcInfoPanel  *self)
 {
   GError   *error;
diff --git a/panels/keyboard/eggcellrendererkeys.c b/panels/keyboard/eggcellrendererkeys.c
index 65096b3..f8ce5a2 100644
--- a/panels/keyboard/eggcellrendererkeys.c
+++ b/panels/keyboard/eggcellrendererkeys.c
@@ -561,7 +561,7 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer      *cell,
   EggCellRendererKeys *keys;
   GtkWidget *label;
   GtkWidget *eventbox;
-  GValue celltext_editable = {0, };
+  GValue celltext_editable = {0};
 
   celltext = GTK_CELL_RENDERER_TEXT (cell);
   keys = EGG_CELL_RENDERER_KEYS (cell);
diff --git a/panels/media/cc-media-panel.c b/panels/media/cc-media-panel.c
index f2bafd0..8c3cc3a 100644
--- a/panels/media/cc-media-panel.c
+++ b/panels/media/cc-media-panel.c
@@ -488,7 +488,7 @@ media_panel_setup (CcMediaPanel *self)
 
   for (l = content_types; l != NULL; l = l->next) {
     char *content_type = l->data;
-    char *description;
+    char *description = NULL;
     GIcon *icon;
 
     if (!g_str_has_prefix (content_type, "x-content/"))
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);
