[ostree] libostree: Quiet compiler warning with --disable-libarchive
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [ostree] libostree: Quiet compiler warning with --disable-libarchive
- Date: Fri, 24 Aug 2012 20:47:56 +0000 (UTC)
commit 7087d28ec33a282a8f00623ec881ae8b63b045d2
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 24 16:47:31 2012 -0400
    libostree: Quiet compiler warning with --disable-libarchive
    
    This function is only used if compiling with it.
 src/libostree/ostree-repo.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 200a790..feab064 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -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)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]