qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] monitor: fix debug print compiling error


From: Gonglei (Arei)
Subject: Re: [Qemu-devel] [PATCH] monitor: fix debug print compiling error
Date: Thu, 21 Aug 2014 12:55:48 +0000

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf Of Peter Crosthwaite
> Sent: Thursday, August 21, 2014 8:54 PM
> To: Gonglei (Arei)
> Cc: address@hidden Developers; Huangweidong (C); Luiz Capitulino
> Subject: Re: [Qemu-devel] [PATCH] monitor: fix debug print compiling error
> 
> On Thu, Aug 21, 2014 at 10:47 PM,  <address@hidden> wrote:
> > From: Gonglei <address@hidden>
> >
> > error: 'i' undeclared (first use in this function)
> >
> > Signed-off-by: Gonglei <address@hidden>
> > ---
> >  monitor.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/monitor.c b/monitor.c
> > index 34cee74..6a233e7 100644
> > --- a/monitor.c
> > +++ b/monitor.c
> > @@ -4747,6 +4747,7 @@ static void monitor_find_completion(void
> *opaque,
> >          return;
> >      }
> >  #ifdef DEBUG_COMPLETION
> > +    int i;
> 
> You mix code and declarations when you do this. You can add a pair of
> {} around the whole thing to fix.
> 
Got it. Thanks! Will fix it.

Best regards,
-Gonglei

reply via email to

[Prev in Thread] Current Thread [Next in Thread]