提交 d7e1c4fc 编写于 作者: D Daniel Veillard

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

  warnings when compiling without Xen
Daniel
上级 ccee35cb
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
......
......@@ -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;
......
......@@ -196,7 +196,7 @@ int
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
exit(0);
return(0);
}
#endif /* WITH_XEN */
/*
......
......@@ -220,7 +220,7 @@ int
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
exit(0);
return(0);
}
#endif /* WITH_XEN */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册