[gnome-control-center] shell: GCC 4.6 warning fixes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: GCC 4.6 warning fixes
- Date: Wed, 2 Mar 2011 18:09:35 +0000 (UTC)
commit 916e4d2f1673a186c823301977e3eb71743a6f01
Author: Kjartan Maraas <kmaraas gnome org>
Date: Wed Mar 2 18:09:17 2011 +0000
shell: GCC 4.6 warning fixes
https://bugzilla.gnome.org/show_bug.cgi?id=642810
shell/cc-shell-category-view.c | 4 +---
shell/gnome-control-center.c | 3 +--
2 files changed, 2 insertions(+), 5 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]