[libvirt] Some problem with the save function

Charles Duffy charles at dyfis.net
Fri Sep 18 14:45:49 UTC 2009


On Fri, Sep 18, 2009 at 1:53 AM, Chris Lalancette <clalance at redhat.com>wrote:

> > diff --git a/src/qemu_driver.c b/src/qemu_driver.c
> > index a65334f..ff30421 100644
> > --- a/src/qemu_driver.c
> > +++ b/src/qemu_driver.c
> > @@ -3912,10 +3912,15 @@ static int qemudDomainSave(virDomainPtr dom,
> >          goto cleanup;
> >      }
> >
> > -    if (STREQ (prog, "raw"))
> > +    const char *args;
>
> I think you'll get a warning about "mixing code and data" here.  At least,
> it's
> not at the top of a block, so we should move it to the top of a block.
>

I would have done that, but as I recall we're already declaring const char
*prog immediately before its first use rather than at the top of a block, so
I presumed we're using compile-time options which suppress that warning
already. I'll double-check what's going on when I get back to the office.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090918/72f0c1ae/attachment-0001.htm>


More information about the libvir-list mailing list