[gnome-builder] flatpak: cleanup warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: cleanup warnings
- Date: Wed, 5 May 2021 20:41:14 +0000 (UTC)
commit e4d0b8a06a4aafe637b65ad7ded461d31a6f9db0
Author: Christian Hergert <chergert redhat com>
Date: Wed May 5 13:01:54 2021 -0700
flatpak: cleanup warnings
src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 3 ---
src/plugins/flatpak/daemon/test-install.c | 1 -
src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 2 +-
3 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index e709d1580..8ba253d4c 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -427,7 +427,6 @@ ipc_flatpak_service_impl_list_runtimes (IpcFlatpakService *service,
GDBusMethodInvocation *invocation)
{
IpcFlatpakServiceImpl *self = (IpcFlatpakServiceImpl *)service;
- g_autoptr(GError) error = NULL;
GVariantBuilder builder;
g_assert (IPC_IS_FLATPAK_SERVICE_IMPL (self));
@@ -832,7 +831,6 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
IpcFlatpakServiceImpl *self = (IpcFlatpakServiceImpl *)service;
g_autoptr(IpcFlatpakTransfer) transfer = NULL;
g_autoptr(GArray) refs = NULL;
- g_autoptr(GError) error = NULL;
g_autoptr(GTask) task = NULL;
GDBusConnection *connection;
InstallState *state;
@@ -1011,7 +1009,6 @@ resolve_extension (GPtrArray *installations,
const char *group = groups[l];
g_autofree char *version = NULL;
g_autofree char *runtime = NULL;
- g_autofree char *match = NULL;
g_autofree char *refstr = NULL;
/* This might be our extension */
diff --git a/src/plugins/flatpak/daemon/test-install.c b/src/plugins/flatpak/daemon/test-install.c
index 687e4c7de..bcbb95495 100644
--- a/src/plugins/flatpak/daemon/test-install.c
+++ b/src/plugins/flatpak/daemon/test-install.c
@@ -35,7 +35,6 @@ install_cb (GObject *object,
{
IpcFlatpakService *service = (IpcFlatpakService *)object;
g_autoptr(GMainLoop) main_loop = user_data;
- g_autoptr(GVariant) runtimes = NULL;
g_autoptr(GError) error = NULL;
gboolean ret;
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 424fbb2b9..d7ca10053 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -384,7 +384,7 @@ gbp_flatpak_runtime_provider_bootstrap (IdeTask *task,
if (ipc_flatpak_service_call_resolve_extension_sync (service, state->sdk, id, &resolved, NULL,
NULL))
{
- g_autofree char *old = g_steal_pointer (&id);
+ G_GNUC_UNUSED g_autofree char *old = g_steal_pointer (&id);
g_ptr_array_index (state->to_install, i-1) = id = g_steal_pointer (&resolved);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]