[epiphany/gnome-3-26] sync-debug: Fix unused variable warnings



commit 1980323d35d018ed51b9f8f48919ecb60a439ee1
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Oct 3 16:31:36 2017 +0200

    sync-debug: Fix unused variable warnings

 lib/sync/debug/ephy-sync-debug.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/sync/debug/ephy-sync-debug.c b/lib/sync/debug/ephy-sync-debug.c
index 702683c..52063e7 100644
--- a/lib/sync/debug/ephy-sync-debug.c
+++ b/lib/sync/debug/ephy-sync-debug.c
@@ -447,7 +447,6 @@ void
 ephy_sync_debug_view_secrets (void)
 {
   GHashTable *attributes;
-  SecretValue *value;
   GList *result;
   GError *error = NULL;
 
@@ -468,14 +467,16 @@ ephy_sync_debug_view_secrets (void)
    * this list would normally have only one element, but for the sake of
    * debugging purposes we iterate through all the list.
    */
+#if DEVELOPER_MODE
   for (GList *l = result; l && l->data; l = l->next) {
     GHashTable *attrs = secret_item_get_attributes (result->data);
     const char *account = g_hash_table_lookup (attrs, ACCOUNT_KEY);
-    value = secret_item_get_secret (result->data);
+    SecretValue *value = secret_item_get_secret (result->data);
     LOG ("Sync secrets of %s: %s", account, secret_value_get_text (value));
     secret_value_unref (value);
     g_hash_table_unref (attrs);
   }
+#endif
 
   g_list_free_full (result, g_object_unref);
 free_attributes:


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