[network-manager-applet/rm-userset] trivial: shut up gcc about unused variables



commit 9179927a286a878ed0c7c796611776ea599073b2
Author: Dan Williams <dcbw redhat com>
Date:   Thu Jan 27 10:50:21 2011 -0600

    trivial: shut up gcc about unused variables

 src/gconf-helpers/gconf-helpers.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-helpers/gconf-helpers.c b/src/gconf-helpers/gconf-helpers.c
index 1db2d7a..52b2324 100644
--- a/src/gconf-helpers/gconf-helpers.c
+++ b/src/gconf-helpers/gconf-helpers.c
@@ -2005,6 +2005,10 @@ nm_gconf_add_keyring_item (const char *connection_uuid,
 	                                      secret,
 	                                      TRUE,
 	                                      &id);
+	if (ret != GNOME_KEYRING_RESULT_OK) {
+		g_warning ("Failed to add keyring item (%s/%s/%s/%s): %d",
+		           connection_uuid, connection_name, setting_name, setting_key, ret);
+	}
 	gnome_keyring_attribute_list_free (attrs);
 	g_free (display_name);
 }
@@ -2344,8 +2348,10 @@ write_object (GConfClient *client,
 		 * deleted, but /etc/pki/tls/cert.pem would not.
 		 */
 		standard_file = generate_cert_path (id, objtype->suffix);
-		if (g_file_test (standard_file, G_FILE_TEST_EXISTS))
+		if (g_file_test (standard_file, G_FILE_TEST_EXISTS)) {
 			ignored = unlink (standard_file);
+			if (ignored) {};  /* shut gcc up */
+		}
 		g_free (standard_file);
 
 		/* Delete the key from GConf */



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