[glib] Fix some compiler warnings from gcc 4.6



commit 01602e16955fb7ca60799d4e142c7392ad91237d
Author: Colin Walters <walters verbum org>
Date:   Fri Apr 15 15:51:25 2011 -0400

    Fix some compiler warnings from gcc 4.6

 gio/gdbusauthmechanismsha1.c    |    1 +
 gio/tests/gdbus-serialization.c |    1 -
 gio/tests/proxy.c               |    2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index a38a3fe..e1b33cf 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -652,6 +652,7 @@ keyring_generate_entry (const gchar  *cookie_context,
   lines = NULL;
   new_contents = NULL;
   have_id = FALSE;
+  use_id = 0;
   use_cookie = NULL;
   lock_fd = -1;
 
diff --git a/gio/tests/gdbus-serialization.c b/gio/tests/gdbus-serialization.c
index 25dada2..0ca13ef 100644
--- a/gio/tests/gdbus-serialization.c
+++ b/gio/tests/gdbus-serialization.c
@@ -784,7 +784,6 @@ message_serialize_invalid (void)
       DBusMessage *dbus_message;
       char *blob;
       int blob_len;
-      int i;
       /* these are in pairs with matching length */
       const gchar *valid_utf8_str = "this is valid...";
       const gchar *invalid_utf8_str = "this is invalid\xff";
diff --git a/gio/tests/proxy.c b/gio/tests/proxy.c
index cf54d693..664be58 100644
--- a/gio/tests/proxy.c
+++ b/gio/tests/proxy.c
@@ -278,7 +278,7 @@ use_inet_address (gboolean synchronous)
 {
   GSocketAddressEnumerator *enumerator;
   GSocketAddress *sockaddr;
-  GInetAddress *addr;
+  GInetAddress *addr = NULL;
   guint port = 0;
   gchar **ip_and_port;
 



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