[gnome-system-tools] Fix a few compiler warnings. Bug 612805.
- From: Andre Klapper <aklapper src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Fix a few compiler warnings. Bug 612805.
- Date: Sun, 14 Mar 2010 11:37:53 +0000 (UTC)
commit 0754dec332d821bdf17adb0ead513dfe6b8f0695
Author: Andre Klapper <a9016009 gmx de>
Date: Sat Mar 13 17:54:31 2010 +0100
Fix a few compiler warnings. Bug 612805.
src/common/gst-platform-dialog.c | 5 -----
src/common/gst-service-role.c | 2 ++
src/common/gst-tool.c | 3 +--
src/network/locations-combo.c | 1 -
src/network/network-locations.c | 10 ++++++----
src/network/network-tool.c | 2 +-
6 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/src/common/gst-platform-dialog.c b/src/common/gst-platform-dialog.c
index 4dc43bd..8fd8797 100644
--- a/src/common/gst-platform-dialog.c
+++ b/src/common/gst-platform-dialog.c
@@ -217,8 +217,6 @@ static void
gst_platform_dialog_finalize (GObject *object)
{
GstPlatformDialog *dialog = GST_PLATFORM_DIALOG (object);
- GstPlatformDialogPrivate *priv = dialog->_priv;
- gint i = 0;
if (dialog->session)
g_object_unref (dialog->session);
@@ -322,10 +320,7 @@ gst_platform_dialog_populate_list (GstPlatformDialog *dialog)
GstPlatformDialogPrivate *priv;
GtkTreeModel *sort_model;
GtkTreeStore *store;
- GtkTreeIter iter;
GList *platforms;
- OobsPlatform *platform;
- GString *str;
GHashTable *distros;
g_return_if_fail (OOBS_IS_SESSION (dialog->session));
diff --git a/src/common/gst-service-role.c b/src/common/gst-service-role.c
index 5d43115..29b314a 100644
--- a/src/common/gst-service-role.c
+++ b/src/common/gst-service-role.c
@@ -20,6 +20,8 @@
*/
#include "gst-service-role.h"
+#include <stdlib.h>
+#include <string.h>
typedef struct _ServiceRole ServiceRole;
diff --git a/src/common/gst-tool.c b/src/common/gst-tool.c
index e5a7139..66c344a 100644
--- a/src/common/gst-tool.c
+++ b/src/common/gst-tool.c
@@ -221,7 +221,6 @@ gst_tool_constructor (GType type,
GObject *object;
GstTool *tool;
gchar *widget_name;
- const gchar *platform;
GtkWidget *dialog;
OobsResult result;
@@ -569,7 +568,7 @@ update_async_func (OobsObject *object,
void
gst_tool_update_async (GstTool *tool)
{
- gint i;
+ guint i;
g_return_if_fail (GST_IS_TOOL (tool));
diff --git a/src/network/locations-combo.c b/src/network/locations-combo.c
index 4defbac..87f9ad6 100644
--- a/src/network/locations-combo.c
+++ b/src/network/locations-combo.c
@@ -458,7 +458,6 @@ gst_locations_combo_constructor (GType type,
GObject *object;
GstLocationsComboPrivate *priv;
GtkCellRenderer *renderer;
- GtkTreeIter selected_iter;
object = (* G_OBJECT_CLASS (gst_locations_combo_parent_class)->constructor) (type,
n_construct_properties,
diff --git a/src/network/network-locations.c b/src/network/network-locations.c
index cd07198..a859a88 100644
--- a/src/network/network-locations.c
+++ b/src/network/network-locations.c
@@ -21,6 +21,8 @@
#include <oobs/oobs.h>
#include <string.h>
#include <gio/gio.h>
+#include <glib.h>
+#include <glib/gstdio.h>
#include "network-locations.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -486,7 +488,7 @@ get_interface_properties (OobsIface *iface)
{
GPtrArray *array;
GParamSpec **params;
- gint n_params, i;
+ guint n_params, i;
params = g_object_class_list_properties (G_OBJECT_GET_CLASS (iface), &n_params);
array = g_ptr_array_sized_new (n_params);
@@ -545,7 +547,7 @@ compare_interface (OobsIface *iface,
{
gboolean equal = FALSE;
gchar *name;
- gint i;
+ guint i;
g_object_get (iface, "device", &name, NULL);
@@ -804,7 +806,7 @@ set_interface (OobsIface *iface,
GKeyFile *key_file)
{
gchar *name;
- gint i;
+ guint i;
g_object_get (iface, "device", &name, NULL);
@@ -1006,7 +1008,7 @@ save_interface (OobsIface *iface,
GKeyFile *key_file)
{
gchar *name;
- gint i;
+ guint i;
g_object_get (iface, "device", &name, NULL);
diff --git a/src/network/network-tool.c b/src/network/network-tool.c
index 1e426ce..2a7a9f2 100644
--- a/src/network/network-tool.c
+++ b/src/network/network-tool.c
@@ -241,7 +241,7 @@ gst_network_tool_update_gui (GstTool *tool)
{
GstNetworkTool *network_tool;
GList *dns, *search_domains;
- OobsList *hosts_list, *ifaces_list;
+ OobsList *hosts_list;
network_tool = GST_NETWORK_TOOL (tool);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]