From af03d2f5b43c151542282b24b53f75850b5e4e36 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 21 Apr 2016 09:48:56 +0200 Subject: [PATCH] Remove unused local variables reported by clang --- builder/builder-manifest.c | 1 - common/xdg-app-dir.c | 1 - common/xdg-app-utils.c | 1 - document-portal/xdp-fuse.c | 3 --- 4 files changed, 6 deletions(-) diff --git a/builder/builder-manifest.c b/builder/builder-manifest.c index 9c7d1448..f75b3051 100644 --- a/builder/builder-manifest.c +++ b/builder/builder-manifest.c @@ -1894,7 +1894,6 @@ builder_manifest_create_platform (BuilderManifest *self, g_autoptr(GFile) metadata_file = NULL; g_autofree char *extension_contents = NULL; g_autoptr(GFileOutputStream) output = NULL; - g_autoptr(GFile) locale_parent_dir = NULL; g_autoptr(GFile) metadata_locale_file = NULL; g_autofree char *metadata_contents = NULL; diff --git a/common/xdg-app-dir.c b/common/xdg-app-dir.c index f0571ab2..a780926f 100644 --- a/common/xdg-app-dir.c +++ b/common/xdg-app-dir.c @@ -1954,7 +1954,6 @@ xdg_app_dir_deploy (XdgAppDir *self, g_autoptr(GFile) files_etc = NULL; g_autoptr(GFile) metadata = NULL; g_autoptr(GFile) export = NULL; - g_autoptr(OstreeAsyncProgress) progress = NULL; g_autoptr(GKeyFile) keyfile = NULL; g_auto(GStrv) subpaths = NULL; diff --git a/common/xdg-app-utils.c b/common/xdg-app-utils.c index e5feecfc..ce8b8464 100644 --- a/common/xdg-app-utils.c +++ b/common/xdg-app-utils.c @@ -1516,7 +1516,6 @@ xdg_app_repo_collect_sizes (OstreeRepo *repo, GCancellable *cancellable, GError **error) { - g_autoptr(GFileInfo) local_file_info = NULL; g_autoptr(GFileEnumerator) dir_enum = NULL; GFileInfo *child_info_tmp; GError *temp_error = NULL; diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index cf6c0fba..845d47e8 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -1130,7 +1130,6 @@ xdp_fuse_opendir (fuse_req_t req, { g_autoptr(XdpInode) inode = NULL; struct dirbuf b = {0}; - g_autoptr (XdgAppDbEntry) entry = NULL; g_debug ("xdp_fuse_opendir %lx", ino); @@ -1553,7 +1552,6 @@ xdp_fuse_create (fuse_req_t req, g_autoptr (XdgAppDbEntry) entry = NULL; struct fuse_entry_param e = {0}; gboolean can_see, can_write; - g_autofree char *tmpfile = NULL; int open_mode; XdpFile *file = NULL; XdpInode *inode; @@ -1962,7 +1960,6 @@ xdp_fuse_unlink (fuse_req_t req, const char *filename) { g_autoptr(XdpInode) parent_inode = NULL; - g_autoptr (XdgAppDbEntry) entry = NULL; g_autoptr(XdpInode) child_inode = NULL; g_debug ("xdp_fuse_unlink %lx/%s", parent, filename);