Received: from eggs.gnu.org ([208.118.235.92]:37709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiZQn-0006qL-A4 for qemu-devel@nongnu.org; Sat, 23 Jun 2012 19:07:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiZQk-0002Fy-Ox for qemu-devel@nongnu.org; Sat, 23 Jun 2012 19:07:52 -0400 From: Alexander Graf Date: Sun, 24 Jun 2012 01:06:36 +0200 Message-Id: <1340492856-21126-13-git-send-email-agraf@suse.de> In-Reply-To: <1340492856-21126-1-git-send-email-agraf@suse.de> References: <1340492856-21126-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 12/72] ppc: Avoid a warning with the next patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel qemu-devel Cc: Blue Swirl , qemu-ppc Mailing List , =?utf-8?q?Andreas=20F=C3=A4rber?= , Aurelien Jarno From: Blue Swirl When the code is moved together by the next patch, compiler detects a possible uninitialized variable use. Avoid the warning by initializing the variables. Signed-off-by: Blue Swirl Signed-off-by: Alexander Graf Signed-off-by: Andreas F=C3=A4rber Signed-off-by: Alexander Graf --- target-ppc/mmu_helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 7bd6230..e79b8f2 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -89,7 +89,7 @@ void helper_store_slb(CPUPPCState *env, target_ulong rb= , target_ulong rs) =20 target_ulong helper_load_slb_esid(CPUPPCState *env, target_ulong rb) { - target_ulong rt; + target_ulong rt =3D 0; =20 if (ppc_load_slb_esid(env, rb, &rt) < 0) { helper_raise_exception_err(env, POWERPC_EXCP_PROGRAM, @@ -100,7 +100,7 @@ target_ulong helper_load_slb_esid(CPUPPCState *env, t= arget_ulong rb) =20 target_ulong helper_load_slb_vsid(CPUPPCState *env, target_ulong rb) { - target_ulong rt; + target_ulong rt =3D 0; =20 if (ppc_load_slb_vsid(env, rb, &rt) < 0) { helper_raise_exception_err(env, POWERPC_EXCP_PROGRAM, --=20 1.6.0.2