[gnome-system-tools] Fix "unused variable" gcc warnings



commit b8fc4a10947132f5f213b50cf031de6b1857b5a8
Author: Andre Klapper <a9016009 gmx de>
Date:   Wed Apr 7 16:07:33 2010 +0200

    Fix "unused variable" gcc warnings

 src/network/address-list.c            |    1 -
 src/services/callbacks.c              |    5 +----
 src/services/service-settings-table.c |    4 ++--
 src/shares/nautilus/nautilus-shares.c |    1 -
 src/shares/nfs-acl-table.c            |    1 -
 src/shares/table.c                    |    1 -
 src/time/ntp-servers-list.c           |    4 ----
 src/time/time-tool.c                  |    9 ---------
 src/time/tz-map.c                     |    1 -
 9 files changed, 3 insertions(+), 24 deletions(-)
---
diff --git a/src/network/address-list.c b/src/network/address-list.c
index 6254a9b..cb7a58f 100644
--- a/src/network/address-list.c
+++ b/src/network/address-list.c
@@ -290,7 +290,6 @@ setup_treeview (GstAddressList *list)
   GtkCellRenderer *renderer;
   GtkTreeModel    *model;
   GstTablePopup   *table_popup;
-  GtkTargetEntry   target = { "dns", GTK_TARGET_SAME_WIDGET, 0 };
 
   model = GTK_TREE_MODEL (gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_BOOLEAN));
   gtk_tree_view_set_model (list->_priv->list, model);
diff --git a/src/services/callbacks.c b/src/services/callbacks.c
index 90b7946..4bf11e6 100644
--- a/src/services/callbacks.c
+++ b/src/services/callbacks.c
@@ -41,7 +41,7 @@ show_settings (void)
 	GtkTreeModel *model;
 	GtkTreeIter iter;
 	OobsService *service;
-	gchar *script, *title;
+	gchar *title;
 	gint response;
 
 	table = gst_dialog_get_widget (tool->main_dialog, "services_list");
@@ -90,12 +90,9 @@ show_settings (void)
 static void
 do_popup_menu (GtkWidget *table, GtkWidget *popup, GdkEventButton *event)
 {
-	gint button, event_time;
 	GtkTreeSelection *selection;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
-	GtkUIManager *ui_manager;
-	GtkAction *action;
 	gboolean active;
 
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (table));
diff --git a/src/services/service-settings-table.c b/src/services/service-settings-table.c
index ac23bfb..638a9c2 100644
--- a/src/services/service-settings-table.c
+++ b/src/services/service-settings-table.c
@@ -121,9 +121,9 @@ on_status_edited (GtkCellRendererText *cell_renderer,
 		  const gchar         *new_text,
 		  gpointer             data)
 {
-	GtkTreeModel *model, *combo_model;
+	GtkTreeModel *model;
 	GtkTreePath *path;
-	GtkTreeIter iter, combo_iter;
+	GtkTreeIter iter;
 
 	model = GTK_TREE_MODEL (data);
 	path = gtk_tree_path_new_from_string (path_string);
diff --git a/src/shares/nautilus/nautilus-shares.c b/src/shares/nautilus/nautilus-shares.c
index 83528f1..1b18082 100644
--- a/src/shares/nautilus/nautilus-shares.c
+++ b/src/shares/nautilus/nautilus-shares.c
@@ -129,7 +129,6 @@ get_file_items (NautilusMenuProvider *provider,
   gboolean one_item, is_local, is_dir;
   NautilusFileInfo *info;
   NautilusMenuItem *menu_item;
-  GList            *items = NULL;
 
   shares = NAUTILUS_SHARES (provider);
   one_item = (files && !files->next);
diff --git a/src/shares/nfs-acl-table.c b/src/shares/nfs-acl-table.c
index 7708042..eb58a59 100644
--- a/src/shares/nfs-acl-table.c
+++ b/src/shares/nfs-acl-table.c
@@ -63,7 +63,6 @@ void
 nfs_acl_table_create (void)
 {
 	GtkWidget *table = gst_dialog_get_widget (tool->main_dialog, "share_nfs_acl");
-	GtkTreeSelection *selection;
 	GtkTreeModel *model;
 
 	model = create_nfs_acl_table_model ();
diff --git a/src/shares/table.c b/src/shares/table.c
index 0919cda..e47ce60 100644
--- a/src/shares/table.c
+++ b/src/shares/table.c
@@ -198,7 +198,6 @@ table_modify_share_at_iter (GtkTreeIter *iter, OobsShare *share, OobsListIter *l
 {
 	GtkWidget    *table = gst_dialog_get_widget (tool->main_dialog, "shares_table");
 	GtkTreeModel *model;
-	GdkPixbuf    *pixbuf = NULL;
 
 	g_return_if_fail (share != NULL);
 	g_return_if_fail (OOBS_IS_SHARE (share));
diff --git a/src/time/ntp-servers-list.c b/src/time/ntp-servers-list.c
index c23ba7d..e0a87d0 100644
--- a/src/time/ntp-servers-list.c
+++ b/src/time/ntp-servers-list.c
@@ -180,10 +180,7 @@ on_server_toggled (GtkCellRendererToggle *renderer,
 	GtkListStore *store = (GtkListStore *) data;
 	GtkTreePath *path  = gtk_tree_path_new_from_string (path_str);
 	GstTimeTool *tool;
-	OobsList *list;
-	OobsListIter *list_iter;
 	GtkTreeIter iter;
-	gchar *url;
 
 	if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path)) {
 		g_critical ("could not get list iter");
@@ -287,7 +284,6 @@ on_ntp_addserver (GtkWidget *widget, GstDialog *dialog)
 {
 	GtkEditable *ntp_entry;
 	GtkTreeView *ntp_list;
-	GtkWidget *item;
 	GtkListStore *store;
 	GtkTreeIter iter;
 	gchar *text;
diff --git a/src/time/time-tool.c b/src/time/time-tool.c
index 74b1b13..8cd0c87 100644
--- a/src/time/time-tool.c
+++ b/src/time/time-tool.c
@@ -92,7 +92,6 @@ gst_time_tool_class_init (GstTimeToolClass *class)
 static void
 get_ntp_service (GstTimeTool *tool)
 {
-	GstTimeToolPrivate *priv = GST_TIME_TOOL_GET_PRIVATE (tool);
 	GObject *service;
 	OobsList *list;
 	OobsListIter iter;
@@ -117,7 +116,6 @@ get_ntp_service (GstTimeTool *tool)
 static void
 gst_time_tool_init (GstTimeTool *tool)
 {
-	OobsList *list;
 	DBusError error;
 	GstTimeToolPrivate *priv = GST_TIME_TOOL_GET_PRIVATE (tool);
 
@@ -195,7 +193,6 @@ inhibit_screensaver (GstTimeTool *tool,
 static gboolean
 on_apply_timeout (GstTimeTool *tool)
 {
-	GstTimeToolPrivate *priv = GST_TIME_TOOL_GET_PRIVATE (tool);
 	guint year, month, day, hour, minute, second;
 
 	gtk_calendar_get_date (GTK_CALENDAR (tool->calendar), &year, &month, &day);
@@ -350,7 +347,6 @@ init_timezone (GstTimeTool *time_tool)
 	GtkWidget *w;
 	GtkCellRenderer *cell;
 	GPtrArray *locs;
-	GList *combo_locs = NULL;
 	int i;
 
 	time_tool->tzmap = e_tz_map_new (tool);
@@ -542,7 +538,6 @@ gst_time_tool_constructor (GType                  type,
 {
 	GObject *object;
 	GstTimeTool *time_tool;
-	GtkWidget *widget;
 
 	object = (* G_OBJECT_CLASS (gst_time_tool_parent_class)->constructor) (type,
 									       n_construct_properties,
@@ -575,7 +570,6 @@ static void
 gst_time_tool_finalize (GObject *object)
 {
 	GstTimeTool *tool = GST_TIME_TOOL (object);
-	GstTimeToolPrivate *priv = GST_TIME_TOOL_GET_PRIVATE (object);
 
 	/* FIXME: missing things to free */
 	g_object_unref (tool->time_config);
@@ -586,7 +580,6 @@ gst_time_tool_finalize (GObject *object)
 static void
 update_servers_list (GstTimeTool *tool)
 {
-	GstTimeToolPrivate *priv;
 	OobsList *list;
 	OobsListIter iter;
 	GObject *server;
@@ -755,9 +748,7 @@ gst_time_tool_run_timezone_dialog (GstTimeTool *time_tool)
 	GtkWidget *label;
 	const gchar *timezone;
 	gchar *tz_name = NULL;
-	gchar *old_tz_name = NULL;
 	TzLocation *tz_location;
-	gint correction;
 
 	tool  = GST_TOOL (time_tool);
 	label = gst_dialog_get_widget (tool->main_dialog, "tzlabel");
diff --git a/src/time/tz-map.c b/src/time/tz-map.c
index 86dad93..ba0fd02 100644
--- a/src/time/tz-map.c
+++ b/src/time/tz-map.c
@@ -406,7 +406,6 @@ button_pressed (GtkWidget *w, GdkEventButton *event, gpointer data)
 	else
 	{
 		GtkWidget  *location_combo;
-		GtkWidget  *location_entry;
 		TzLocation *tz_location;
 		gchar      *entry_text, *entry_text_new;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]