libostree: Quiet compiler warning with --disable-libarchive
This function is only used if compiling with it.
This commit is contained in:
parent
f5113085e1
commit
7087d28ec3
|
|
@ -2611,20 +2611,6 @@ create_tree_variant_from_hashes (GHashTable *file_checksums,
|
||||||
return serialized_tree;
|
return serialized_tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GFileInfo *
|
|
||||||
create_modified_file_info (GFileInfo *info,
|
|
||||||
OstreeRepoCommitModifier *modifier)
|
|
||||||
{
|
|
||||||
GFileInfo *ret;
|
|
||||||
|
|
||||||
if (!modifier)
|
|
||||||
return (GFileInfo*)g_object_ref (info);
|
|
||||||
|
|
||||||
ret = g_file_info_dup (info);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static OstreeRepoCommitFilterResult
|
static OstreeRepoCommitFilterResult
|
||||||
apply_commit_filter (OstreeRepo *self,
|
apply_commit_filter (OstreeRepo *self,
|
||||||
OstreeRepoCommitModifier *modifier,
|
OstreeRepoCommitModifier *modifier,
|
||||||
|
|
@ -2936,6 +2922,20 @@ ostree_repo_stage_mtree (OstreeRepo *self,
|
||||||
|
|
||||||
#ifdef HAVE_LIBARCHIVE
|
#ifdef HAVE_LIBARCHIVE
|
||||||
|
|
||||||
|
static GFileInfo *
|
||||||
|
create_modified_file_info (GFileInfo *info,
|
||||||
|
OstreeRepoCommitModifier *modifier)
|
||||||
|
{
|
||||||
|
GFileInfo *ret;
|
||||||
|
|
||||||
|
if (!modifier)
|
||||||
|
return (GFileInfo*)g_object_ref (info);
|
||||||
|
|
||||||
|
ret = g_file_info_dup (info);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
propagate_libarchive_error (GError **error,
|
propagate_libarchive_error (GError **error,
|
||||||
struct archive *a)
|
struct archive *a)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue