From patchwork Wed Apr 13 12:43:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 91001 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 84EE8B6F0A for ; Wed, 13 Apr 2011 22:44:13 +1000 (EST) Received: from localhost ([::1]:55287 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9zQX-0000vd-19 for incoming@patchwork.ozlabs.org; Wed, 13 Apr 2011 08:44:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9zQK-0000uU-Om for qemu-devel@nongnu.org; Wed, 13 Apr 2011 08:44:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9zQG-0006xg-NJ for qemu-devel@nongnu.org; Wed, 13 Apr 2011 08:43:56 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:47644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9zQG-0006xQ-IW for qemu-devel@nongnu.org; Wed, 13 Apr 2011 08:43:52 -0400 Received: from d01dlp02.pok.ibm.com (d01dlp02.pok.ibm.com [9.56.224.85]) by e7.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p3DCLrPL023349 for ; Wed, 13 Apr 2011 08:21:53 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 4785F6E8036 for ; Wed, 13 Apr 2011 08:43:50 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3DChn7m2527350 for ; Wed, 13 Apr 2011 08:43:49 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3DChmJ5027748 for ; Wed, 13 Apr 2011 08:43:49 -0400 Received: from titi.austin.rr.com (sig-9-65-59-231.mts.ibm.com [9.65.59.231]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3DChl2o027685; Wed, 13 Apr 2011 08:43:47 -0400 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Wed, 13 Apr 2011 07:43:45 -0500 Message-Id: <1302698625-26136-1-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.7.4.1 X-Content-Scanned: Fidelis XPS MAILER X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 32.97.182.137 Cc: Edgar E Igleasias , Michael Walle , Anthony Liguori Subject: [Qemu-devel] [PATCH] lm32: fix build breakage due to uninitialized variable 'r' 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 gcc 4.5.2 correctly complains that r is potentially uninitialized in this function. Signed-off-by: Anthony Liguori --- hw/milkymist-pfpu.c | 2 +- roms/seabios | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/milkymist-pfpu.c b/hw/milkymist-pfpu.c index 4831e00..94e6315 100644 --- a/hw/milkymist-pfpu.c +++ b/hw/milkymist-pfpu.c @@ -163,7 +163,7 @@ static int pfpu_decode_insn(MilkymistPFPUState *s) uint32_t reg_b = (insn >> 11) & 0x7f; uint32_t op = (insn >> 7) & 0xf; uint32_t reg_d = insn & 0x7f; - uint32_t r; + uint32_t r = 0; int latency = 0; switch (op) { diff --git a/roms/seabios b/roms/seabios index cc97564..06d0bdd 160000 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit cc975646af69f279396d4d5e1379ac6af80ee637 +Subproject commit 06d0bdd9e2e20377b3180e4986b14c8549b393e4