[epiphany] sync-debug: Fix unused variable warnings
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] sync-debug: Fix unused variable warnings
- Date: Tue, 3 Oct 2017 14:39:51 +0000 (UTC)
commit ef0ff0e4abb1167cf9cdbb5e3bfb1539611bc066
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 cd76562..c79fc78 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]