warnings when compiling without Xen
Daniel
+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
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;
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
- exit(0);
+ return(0);
}
#endif /* WITH_XEN */
/*
main(void)
{
fprintf(stderr, "libvirt compiled without Xen support\n");
- exit(0);
+ return(0);
}
#endif /* WITH_XEN */