summaryrefslogtreecommitdiff
path: root/lib/sync
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2017-10-03 16:31:36 +0200
committerMichael Catanzaro <mcatanzaro@igalia.com>2017-10-03 16:31:36 +0200
commitef0ff0e4abb1167cf9cdbb5e3bfb1539611bc066 (patch)
tree57141cdece426e864cf4ac46f27840155f093c2d /lib/sync
parent12f732bd5436a15de2a6b4791eb2ff6d8ce7a497 (diff)
downloadepiphany-ef0ff0e4abb1167cf9cdbb5e3bfb1539611bc066.tar.gz
sync-debug: Fix unused variable warnings
Diffstat (limited to 'lib/sync')
-rw-r--r--lib/sync/debug/ephy-sync-debug.c5
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: