diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-02-25 16:09:49 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-02-25 16:09:49 +0100 |
commit | 6c5e1a8a922511d5d27c763f7e8f93c3c92b46e5 (patch) | |
tree | 662bdbac1b2b274c7f50296dea2eccaff33df426 | |
parent | 382ae396b3b2b2f91ea988571d5908bfc16dc01b (diff) | |
download | xdg-app-6c5e1a8a922511d5d27c763f7e8f93c3c92b46e5.tar.gz |
Fix some compiler warning (unused vars)
-rw-r--r-- | builder/builder-manifest.c | 2 | ||||
-rw-r--r-- | builder/builder-module.c | 2 | ||||
-rw-r--r-- | common/xdg-app-dir.c | 4 | ||||
-rw-r--r-- | common/xdg-app-run.c | 1 | ||||
-rw-r--r-- | lib/xdg-app-remote.c | 2 |
5 files changed, 1 insertions, 10 deletions
diff --git a/builder/builder-manifest.c b/builder/builder-manifest.c index 57be175..8145d7d 100644 --- a/builder/builder-manifest.c +++ b/builder/builder-manifest.c @@ -1952,8 +1952,6 @@ builder_manifest_run (BuilderManifest *self, int argc, GError **error) { - g_autoptr(GSubprocessLauncher) launcher = NULL; - g_autoptr(GSubprocess) subp = NULL; g_autoptr(GPtrArray) args = NULL; g_autofree char *commandline = NULL; g_autofree char *build_dir_path = NULL; diff --git a/builder/builder-module.c b/builder/builder-module.c index 37ee4b0..e6999d3 100644 --- a/builder/builder-module.c +++ b/builder/builder-module.c @@ -752,7 +752,7 @@ builder_module_handle_debuginfo (BuilderModule *self, file_refs = builder_get_debuginfo_file_references (path, &local_error); if (file_refs == NULL) - g_warning (local_error->message); + g_warning ("%s", local_error->message); else { GFile *build_dir = builder_context_get_build_dir (context); diff --git a/common/xdg-app-dir.c b/common/xdg-app-dir.c index 1ab694b..05b1276 100644 --- a/common/xdg-app-dir.c +++ b/common/xdg-app-dir.c @@ -601,8 +601,6 @@ xdg_app_dir_remove_appstream (XdgAppDir *self, { g_autoptr(GFile) appstream_dir = NULL; g_autoptr(GFile) remote_dir = NULL; - g_autofree char *prefix = NULL; - g_autoptr(GHashTable) refs = NULL; if (!xdg_app_dir_ensure_repo (self, cancellable, error)) return FALSE; @@ -623,8 +621,6 @@ xdg_app_dir_remove_all_refs (XdgAppDir *self, GCancellable *cancellable, GError **error) { - g_autoptr(GFile) appstream_dir = NULL; - g_autoptr(GFile) remote_dir = NULL; g_autofree char *prefix = NULL; g_autoptr(GHashTable) refs = NULL; GHashTableIter hash_iter; diff --git a/common/xdg-app-run.c b/common/xdg-app-run.c index 6df7716..703cb95 100644 --- a/common/xdg-app-run.c +++ b/common/xdg-app-run.c @@ -1337,7 +1337,6 @@ xdg_app_run_add_extension_args (GPtrArray *argv_array, GCancellable *cancellable, GError **error) { - g_auto(GStrv) groups = NULL; g_auto(GStrv) parts = NULL; gboolean is_app; GList *extensions, *l; diff --git a/lib/xdg-app-remote.c b/lib/xdg-app-remote.c index 4de191d..e2d88b8 100644 --- a/lib/xdg-app-remote.c +++ b/lib/xdg-app-remote.c @@ -144,7 +144,6 @@ xdg_app_remote_get_appstream_dir (XdgAppRemote *self, const char *arch) { XdgAppRemotePrivate *priv = xdg_app_remote_get_instance_private (self); - g_autoptr(GFile) dir = NULL; g_autofree char *subdir = NULL; if (arch == NULL) @@ -170,7 +169,6 @@ xdg_app_remote_get_appstream_timestamp (XdgAppRemote *self, const char *arch) { XdgAppRemotePrivate *priv = xdg_app_remote_get_instance_private (self); - g_autoptr(GFile) dir = NULL; g_autofree char *subdir = NULL; if (arch == NULL) |