* src/xml.c tests/sexpr2xmltest.c tests/xmconfigtest.c: avoid

warnings when compiling without Xen
Daniel
This commit is contained in:
Daniel Veillard 2007-03-16 14:55:51 +00:00
parent ccee35cbb0
commit d7e1c4fc51
4 changed files with 11 additions and 2 deletions

View File

@ -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>
* python/generator.py: patch from Tatsuro Enokura to fix

View File

@ -1384,6 +1384,10 @@ virDomainXMLDevID(virDomainPtr domain, char *xmldesc, char *class, char *ref)
free(xref);
goto cleanup;
}
#else /* without xen */
/* hack to avoid the warning that domain is unused */
if (domain->id < 0)
ret = -1;
#endif /* WITH_XEN */
goto error;

View File

@ -196,7 +196,7 @@ int
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
exit(0);
return(0);
}
#endif /* WITH_XEN */
/*

View File

@ -220,7 +220,7 @@ int
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
exit(0);
return(0);
}
#endif /* WITH_XEN */