From 52525f46fd997ab04f30d1d0fc8619d424f6f9b2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 27 Aug 2015 16:13:15 +0200 Subject: Remove ununsed variables reported by clang --- document-portal/xdp-fuse.c | 1 - document-portal/xdp-main.c | 5 ----- document-portal/xdp-util.c | 1 - 3 files changed, 7 deletions(-) (limited to 'document-portal') diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index dd3c920..c245c19 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -761,7 +761,6 @@ xdp_fuse_opendir (fuse_req_t req, XdpInodeClass class; guint64 class_ino; g_autoptr (XdgAppDbEntry) entry = NULL; - g_autofree char *basename = NULL; int res; g_debug ("xdp_fuse_opendir %lx", ino); diff --git a/document-portal/xdp-main.c b/document-portal/xdp-main.c index 3dd9e89..e3d87ce 100644 --- a/document-portal/xdp-main.c +++ b/document-portal/xdp-main.c @@ -104,7 +104,6 @@ portal_grant_permissions (GDBusMethodInvocation *invocation, { const char *target_app_id; const char *id; - g_autoptr(GError) error = NULL; g_autofree const char **permissions = NULL; XdpPermissionFlags perms; g_autoptr(XdgAppDbEntry) entry = NULL; @@ -148,7 +147,6 @@ portal_revoke_permissions (GDBusMethodInvocation *invocation, const char *app_id) { const char *target_app_id; - g_autoptr(GError) error = NULL; const char *id; g_autofree const char **permissions = NULL; g_autoptr(XdgAppDbEntry) entry = NULL; @@ -225,9 +223,7 @@ char * do_create_doc (const char *path) { g_autoptr(GVariant) data = g_variant_ref_sink (g_variant_new_bytestring (path)); - g_autofree char *existing_id = NULL; g_autoptr (XdgAppDbEntry) entry = NULL; - g_autofree char *new_id = NULL; glnx_strfreev char **ids = NULL; char *id = NULL; @@ -524,7 +520,6 @@ main (int argc, { guint owner_id; GBytes *introspection_bytes; - g_autoptr(GList) object_types = NULL; g_autoptr(GError) error = NULL; g_autofree char *path = NULL; GDBusConnection *session_bus; diff --git a/document-portal/xdp-util.c b/document-portal/xdp-util.c index fe33eb6..d838d75 100644 --- a/document-portal/xdp-util.c +++ b/document-portal/xdp-util.c @@ -53,7 +53,6 @@ XdpPermissionFlags xdp_get_permissions (XdgAppDbEntry *entry, const char *app_id) { - g_autoptr(GVariant) app_array = NULL; g_autofree const char **permissions = NULL; if (strcmp (app_id, "") == 0) -- cgit v1.2.1