From patchwork Fri Aug 5 06:22:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: malc X-Patchwork-Id: 108610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4358CB6F72 for ; Fri, 5 Aug 2011 16:22:34 +1000 (EST) Received: from localhost ([::1]:55139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpDnj-0000dc-Fz for incoming@patchwork.ozlabs.org; Fri, 05 Aug 2011 02:22:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpDne-0000dX-GI for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpDnd-0007AX-Bi for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:22:26 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:59075 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpDnd-0007A9-31 for qemu-devel@nongnu.org; Fri, 05 Aug 2011 02:22:25 -0400 X-Drweb-SpamState: no X-Drweb-SpamScore: 0 X-DrWeb-SpamReason: X-Drweb-SpamState-Num: 0 Received: from [10.0.66.9] ([10.0.66.9] verified) by fe01-cgp.akado.ru (CommuniGate Pro SMTP 5.2.13) with ESMTPS id 292328176; Fri, 05 Aug 2011 10:22:21 +0400 Date: Fri, 5 Aug 2011 10:22:10 +0400 (MSD) From: malc X-X-Sender: malc@linmac To: qemu-devel@nongnu.org, kwolf@redhat.com Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.232.31.164 Subject: [Qemu-devel] Build broken X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c: In function 'coroutine_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 I guess gcc should yell not only here on ppc32 but on any machine where pointer size is less than the size of two ints. Acked-by: Kevin Wolf 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) CoroutineUContext *co; ucontext_t old_uc, uc; jmp_buf old_env; - union cc_arg arg; + union cc_arg arg = {0}; /* The ucontext functions preserve signal masks which incurs a system call * overhead. setjmp()/longjmp() does not preserve signal masks but only