> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Peter Crosthwaite > Sent: Thursday, August 21, 2014 8:54 PM > To: Gonglei (Arei) > Cc: [email protected] 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, <[email protected]> wrote: > > From: Gonglei <[email protected]> > > > > error: 'i' undeclared (first use in this function) > > > > Signed-off-by: Gonglei <[email protected]> > > --- > > 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
