[libvirt] [PATCH] Only build virDomainObjFormat if not building proxy.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While building under RHEL-5, I got a compile warning because
virDomainObjFormat was defined but not used.  That came about
because in RHEL-5 we build with "#define PROXY", and
virDomainObjFormat is only used with !PROXY.  Move the
define.

Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
---
 src/conf/domain_conf.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index b6d2c61..1d7f458 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -5668,6 +5668,8 @@ char *virDomainDefFormat(virDomainDefPtr def,
     return NULL;
 }
 
+#ifndef PROXY
+
 static char *virDomainObjFormat(virCapsPtr caps,
                                 virDomainObjPtr obj,
                                 int flags)
@@ -5703,9 +5705,6 @@ error:
     return NULL;
 }
 
-
-#ifndef PROXY
-
 int virDomainSaveXML(const char *configDir,
                      virDomainDefPtr def,
                      const char *xml)
-- 
1.6.6.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]