summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-10-07 19:07:01 +0200
committerAlexander Larsson <alexl@redhat.com>2020-10-07 19:07:01 +0200
commitab6a13e2cfb89bbd3f68cc1dcb7c397c0c6c5cc9 (patch)
treeacec1915f2d7069c3bf194da24dcf292e7ad25a1
parent615c8e09d1a2eef3e4653e5aea96890590d2bfb3 (diff)
downloadflatpak-auto-remove-unused-redux.tar.gz
Fix some clang errorsauto-remove-unused-redux
-rw-r--r--common/flatpak-transaction.c3
-rw-r--r--tests/testlibrary.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c
index 9ce5692b..32cf7c1d 100644
--- a/common/flatpak-transaction.c
+++ b/common/flatpak-transaction.c
@@ -4200,12 +4200,9 @@ add_uninstall_unused_ops (FlatpakTransaction *self,
GError **error)
{
FlatpakTransactionPrivate *priv = flatpak_transaction_get_instance_private (self);
- g_autoptr(GHashTable) maybe_unused_runtimes = NULL;
- g_autoptr(GHashTable) newly_used_runtimes = NULL;
g_autoptr(GHashTable) metadata_injection = NULL;
g_autoptr(GHashTable) eol_injection = NULL;
g_autoptr(GPtrArray) to_be_excluded = NULL;
- g_autoptr(GPtrArray) run_after_ops = NULL;
g_auto(GStrv) old_unused_refs = NULL;
g_auto(GStrv) unused_refs = NULL;
const char * const *to_be_excluded_strv = NULL;
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index a903d261..d200f6d6 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -973,7 +973,7 @@ test_list_refs_in_remotes (void)
for (guint i = 0; i < refs1->len; ++i)
{
FlatpakRef *ref = g_ptr_array_index (refs1, i);
- g_hash_table_add (ref_specs, flatpak_ref_format_ref_cached (ref));
+ g_hash_table_add (ref_specs, (gpointer)flatpak_ref_format_ref_cached (ref));
}
/* Ensure that listing the refs by using a remote's URI will get us the