[libvirt] Miscellaneous fixes to build with -Werror
Mark McLoughlin
markmc at redhat.com
Thu Sep 24 08:09:59 UTC 2009
Interesting that gcc-4.41 isn't giving me any warnings
On Wed, 2009-09-23 at 12:32 -0500, Charles Duffy wrote:
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index af215ca..25d983e 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -6132,7 +6132,7 @@ static int
> qemudDomainDetachHostPciDevice(virConnectPtr conn,
> virDomainObjPtr vm,
> virDomainDeviceDefPtr dev)
> {
> - virDomainHostdevDefPtr detach;
> + virDomainHostdevDefPtr detach = NULL;
> char *cmd, *reply;
> int i, ret;
> pciDevice *pci;
Looks like a very real bug, so I just went ahead and pused this one
Thanks,
Mark.
More information about the libvir-list
mailing list