summaryrefslogtreecommitdiff
path: root/document-portal
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-08-27 16:13:15 +0200
committerAlexander Larsson <alexl@redhat.com>2015-08-27 16:13:15 +0200
commit52525f46fd997ab04f30d1d0fc8619d424f6f9b2 (patch)
tree9502d0e817836a4df1d3d0d1da9ad9ca2759aff8 /document-portal
parent42012a7d5a41321c4b7a40ce532b36b20b20b21b (diff)
downloadxdg-app-52525f46fd997ab04f30d1d0fc8619d424f6f9b2.tar.gz
Remove ununsed variables reported by clang
Diffstat (limited to 'document-portal')
-rw-r--r--document-portal/xdp-fuse.c1
-rw-r--r--document-portal/xdp-main.c5
-rw-r--r--document-portal/xdp-util.c1
3 files changed, 0 insertions, 7 deletions
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)