mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
* src/xml.c tests/sexpr2xmltest.c tests/xmconfigtest.c: avoid
warnings when compiling without Xen Daniel
This commit is contained in:
parent
ccee35cbb0
commit
d7e1c4fc51
@ -1,3 +1,8 @@
|
|||||||
|
Fri Mar 16 15:55:01 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/xml.c tests/sexpr2xmltest.c tests/xmconfigtest.c: avoid
|
||||||
|
warnings when compiling without Xen
|
||||||
|
|
||||||
Fri Mar 16 11:43:08 CET 2007 Daniel Veillard <veillard@redhat.com>
|
Fri Mar 16 11:43:08 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* python/generator.py: patch from Tatsuro Enokura to fix
|
* python/generator.py: patch from Tatsuro Enokura to fix
|
||||||
|
@ -1384,6 +1384,10 @@ virDomainXMLDevID(virDomainPtr domain, char *xmldesc, char *class, char *ref)
|
|||||||
free(xref);
|
free(xref);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
#else /* without xen */
|
||||||
|
/* hack to avoid the warning that domain is unused */
|
||||||
|
if (domain->id < 0)
|
||||||
|
ret = -1;
|
||||||
#endif /* WITH_XEN */
|
#endif /* WITH_XEN */
|
||||||
|
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -196,7 +196,7 @@ int
|
|||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "libvirt compiled without Xen support\n");
|
fprintf(stderr, "libvirt compiled without Xen support\n");
|
||||||
exit(0);
|
return(0);
|
||||||
}
|
}
|
||||||
#endif /* WITH_XEN */
|
#endif /* WITH_XEN */
|
||||||
/*
|
/*
|
||||||
|
@ -220,7 +220,7 @@ int
|
|||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "libvirt compiled without Xen support\n");
|
fprintf(stderr, "libvirt compiled without Xen support\n");
|
||||||
exit(0);
|
return(0);
|
||||||
}
|
}
|
||||||
#endif /* WITH_XEN */
|
#endif /* WITH_XEN */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user