summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-set-origin.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-10-25 13:06:36 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-10-27 17:02:01 +0000
commitb77edf24a3afb7a26b40a8adfd81e88ce8d42182 (patch)
tree9e22231431abd091c8cba630760841300d38d539 /src/ostree/ot-admin-builtin-set-origin.c
parent82a4f56593207b2f8a5e6620e64d9c3fa65fbfcf (diff)
downloadostree-b77edf24a3afb7a26b40a8adfd81e88ce8d42182.tar.gz
tree-wide: Remove unused variables detected by CLang
CLang finds these, whereas GCC treats having `__attribute__((cleanup))` as a use. This obsoletes https://github.com/ostreedev/ostree/pull/411 Closes: #548 Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-admin-builtin-set-origin.c')
-rw-r--r--src/ostree/ot-admin-builtin-set-origin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ostree/ot-admin-builtin-set-origin.c b/src/ostree/ot-admin-builtin-set-origin.c
index be88aa6c..8b32eb79 100644
--- a/src/ostree/ot-admin-builtin-set-origin.c
+++ b/src/ostree/ot-admin-builtin-set-origin.c
@@ -120,7 +120,6 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
{ GKeyFile *old_origin = ostree_deployment_get_origin (target_deployment);
g_autofree char *origin_refspec = g_key_file_get_string (old_origin, "origin", "refspec", NULL);
- g_autofree char *new_refspec = NULL;
g_autofree char *origin_remote = NULL;
g_autofree char *origin_ref = NULL;
@@ -129,7 +128,6 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
{ g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL);
g_autoptr(GKeyFile) new_origin = NULL;
- g_autoptr(GFile) origin_path = NULL;
new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);