mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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;
|
||||
}
|
||||
|
||||
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
|
||||
apply_commit_filter (OstreeRepo *self,
|
||||
OstreeRepoCommitModifier *modifier,
|
||||
@ -2936,6 +2922,20 @@ ostree_repo_stage_mtree (OstreeRepo *self,
|
||||
|
||||
#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
|
||||
propagate_libarchive_error (GError **error,
|
||||
struct archive *a)
|
||||
|
Loading…
x
Reference in New Issue
Block a user