diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-10-03 16:31:36 +0200 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-10-03 16:31:36 +0200 |
commit | ef0ff0e4abb1167cf9cdbb5e3bfb1539611bc066 (patch) | |
tree | 57141cdece426e864cf4ac46f27840155f093c2d /lib/sync | |
parent | 12f732bd5436a15de2a6b4791eb2ff6d8ce7a497 (diff) | |
download | epiphany-ef0ff0e4abb1167cf9cdbb5e3bfb1539611bc066.tar.gz |
sync-debug: Fix unused variable warnings
Diffstat (limited to 'lib/sync')
-rw-r--r-- | 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 cd7656233..c79fc7805 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: |