[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Miscellaneous fixes to build with -Werror



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]