From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpa7r-0005cF-0B for qemu-devel@nongnu.org; Sat, 06 Aug 2011 02:12:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpa7p-0002p0-Lp for qemu-devel@nongnu.org; Sat, 06 Aug 2011 02:12:46 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:59019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpa7p-0002ov-Fs for qemu-devel@nongnu.org; Sat, 06 Aug 2011 02:12:45 -0400 Received: by yxt3 with SMTP id 3so2387771yxt.4 for ; Fri, 05 Aug 2011 23:12:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 6 Aug 2011 07:12:44 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Build broken List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Fri, Aug 5, 2011 at 5:49 PM, malc wrote: > On Fri, 5 Aug 2011, Stefan Hajnoczi wrote: > >> On Fri, Aug 5, 2011 at 7:22 AM, malc wrote: >> > >> > /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c: In function 'corout= ine_new': >> > /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c:160:16: error: 'arg.= i[1]' may be used uninitialized in this function >> > /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c:136:18: note: 'arg.i= [1]' was declared here >> > >> > diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c >> > index 41c2379..42dc3e2 100644 >> > --- a/coroutine-ucontext.c >> > +++ b/coroutine-ucontext.c >> > @@ -133,7 +133,7 @@ static Coroutine *coroutine_new(void) >> > =A0 =A0 CoroutineUContext *co; >> > =A0 =A0 ucontext_t old_uc, uc; >> > =A0 =A0 jmp_buf old_env; >> > - =A0 =A0union cc_arg arg; >> > + =A0 =A0union cc_arg arg =3D {0}; >> > >> > =A0 =A0 /* The ucontext functions preserve signal masks which incurs a= system call >> > =A0 =A0 =A0* overhead. =A0setjmp()/longjmp() does not preserve signal = masks but only >> > >> > I guess gcc should yell not only here on ppc32 but on any machine wher= e >> > pointer size is less than the size of two ints. >> >> Makes sense. =A0Are you going to commit a fix or send a signed-off-by pa= tch? >> > > If the author(s)(you and Kevin? just you?) agree with the above i can jus= t > push it. The change makes sense to me. Kevin? Stefan