From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAfYH-0004Rs-Ca for qemu-devel@nongnu.org; Mon, 23 Jun 2008 02:29:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAfYF-0004QB-Is for qemu-devel@nongnu.org; Mon, 23 Jun 2008 02:29:20 -0400 Received: from [199.232.76.173] (port=47489 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAfYF-0004Q3-EF for qemu-devel@nongnu.org; Mon, 23 Jun 2008 02:29:19 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:41101) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAfYF-0004XR-8k for qemu-devel@nongnu.org; Mon, 23 Jun 2008 02:29:19 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 0C684E2CDAED for ; Mon, 23 Jun 2008 08:29:18 +0200 (CEST) Received: from [88.65.247.188] (helo=[192.168.1.198]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KAfYD-0000KQ-00 for qemu-devel@nongnu.org; Mon, 23 Jun 2008 08:29:17 +0200 Message-ID: <485F42BD.80400@web.de> Date: Mon, 23 Jun 2008 08:29:17 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4DAE15A50E66EDE9A3E97C54" Sender: jan.kiszka@web.de Subject: [Qemu-devel] target-sh4/op.c:597: warning: cast to pointer from integer of different size Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4DAE15A50E66EDE9A3E97C54 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable The warning above pointed me to some strange code. I guess this was originally indented: Signed-off-by: Jan Kiszka Index: qemu/target-sh4/op.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- qemu.orig/target-sh4/op.c +++ qemu/target-sh4/op.c @@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void) void OPPROTO op_tasb_rN(void) { - cond_t(*(int8_t *) env->gregs[PARAM1] =3D=3D 0); - *(int8_t *) env->gregs[PARAM1] |=3D 0x80; + cond_t((env->gregs[PARAM1] & 0xff) =3D=3D 0); + *(int8_t *) &env->gregs[PARAM1] |=3D 0x80; RETURN(); } --------------enig4DAE15A50E66EDE9A3E97C54 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIX0K9niDOoMHTA+kRAv2YAJwK1+d8+QDtShjJfc0IHsSBoOxC3QCbBhN6 cu5vJAUSwla7q0YmPtRAcig= =A8AL -----END PGP SIGNATURE----- --------------enig4DAE15A50E66EDE9A3E97C54--