mirror of https://gitee.com/openkylin/libvirt.git
Only build virDomainObjFormat if not building proxy.
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@redhat.com>
This commit is contained in:
parent
f3439c7eae
commit
1204e41f01
|
@ -5660,6 +5660,8 @@ char *virDomainDefFormat(virDomainDefPtr def,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
|
|
||||||
static char *virDomainObjFormat(virCapsPtr caps,
|
static char *virDomainObjFormat(virCapsPtr caps,
|
||||||
virDomainObjPtr obj,
|
virDomainObjPtr obj,
|
||||||
int flags)
|
int flags)
|
||||||
|
@ -5695,9 +5697,6 @@ error:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef PROXY
|
|
||||||
|
|
||||||
int virDomainSaveXML(const char *configDir,
|
int virDomainSaveXML(const char *configDir,
|
||||||
virDomainDefPtr def,
|
virDomainDefPtr def,
|
||||||
const char *xml)
|
const char *xml)
|
||||||
|
|
Loading…
Reference in New Issue