builder: Fix up unused variable warnings from clang

This commit is contained in:
Alexander Larsson committed 2017-04-24 21:48:57 +02:00
1 parent 8b13d3c5ee
commit 8788f8a09e
3 files changed
-13

No files matched your search

-4
View File
@@ -134,7 +134,6 @@ static GFile *
get_mirror_dir (BuilderSourceBzr *self, BuilderContext *context)
{
g_autoptr(GFile) bzr_dir = NULL;
g_autoptr(GFile) dir = NULL;
g_autofree char *filename = NULL;
g_autofree char *bzr_dir_path = NULL;
@@ -277,9 +276,6 @@ builder_source_bzr_bundle (BuilderSource *source,
g_autoptr(GFile) bzr_sources_dir = NULL;
g_autofree char *sources_dir_path = NULL;
g_autofree char *dest_dir_path = NULL;
g_autofree char *dest_dir_path_tmp = NULL;
g_autofree char *bzr_sources_dir_path = NULL;
g_autofree char *base_name = NULL;
g_autofree char *base_name_tmp = NULL;
-2
View File
@@ -255,8 +255,6 @@ builder_source_git_bundle (BuilderSource *source,
g_autofree char *location = NULL;
g_autoptr(GFile) mirror_dir = NULL;
g_autofree char *mirror_dir_path = NULL;
g_autofree char *app_dir_path = NULL;
location = get_url_or_path (self, context, error);
-7
View File
@@ -140,8 +140,6 @@ get_source_file (BuilderSourcePatch *self,
BuilderContext *context,
GError **error)
{
g_autoptr(GFile) patch = NULL;
GFile *base_dir = BUILDER_SOURCE (self)->base_dir;
if (self->path == NULL || self->path[0] == 0)
@@ -267,12 +265,7 @@ builder_source_patch_bundle (BuilderSource *source,
BuilderSourcePatch *self = BUILDER_SOURCE_PATCH (source);
GFile *manifest_base_dir = builder_context_get_base_dir (context);
g_autoptr(GFile) src = NULL;
g_autoptr(GFile) patches_dir = NULL;
g_autoptr(GFile) destination_file = NULL;
g_autofree char *patches_dir_path = NULL;
g_autofree char *file_name = NULL;
g_autofree char *destination_file_path = NULL;
g_autofree char *app_dir_path = NULL;
g_autofree char *rel_path = NULL;
g_autoptr(GFile) destination_dir = NULL;