WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] qemu-xen: fix compiler warning in load_linux

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] qemu-xen: fix compiler warning in load_linux
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 2 Nov 2010 23:37:17 +0100
Delivery-date: Tue, 02 Nov 2010 15:48:51 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1288737436; l=895; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=qPQeO2QbUXZHcNJN0+wmE1MsIfQ=; b=lgf/jMlhsq+Pkxyj3YqZ2hl3Q+iCyo9GuKZhCUx4iXyBUMlbpKZTgT5VOEfoMei49v6 zP/OQNQRxyOXTTRiaD5nr5QMx/kCrUtrTXhmA4JJxCDhrV2Hg1SCGU8u8k+NJSUzXayxw KIyDIOuNyvcc4doVnJ5KWXBxH7YEp7eI7Tk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
fix compile warning.

/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/ioemu-dir/hw/pc.c: In 
function 'load_linux':
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/ioemu-dir/hw/pc.c:713:39:
 warning: operation on 'seg[4]' may be undefined

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

---
 ioemu-remote/hw/pc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- xen-unstable.hg-4.1.22241.orig/ioemu-remote/hw/pc.c
+++ xen-unstable.hg-4.1.22241/ioemu-remote/hw/pc.c
@@ -714,7 +714,7 @@ static void load_linux(uint8_t *option_r
 
     /* generate bootsector to set up the initial register state */
     real_seg = real_addr >> 4;
-    seg[0] = seg[2] = seg[3] = seg[4] = seg[4] = real_seg;
+    seg[0] = seg[2] = seg[3] = seg[4] = real_seg;
     seg[1] = real_seg+0x20;    /* CS */
     memset(gpr, 0, sizeof gpr);
     gpr[4] = cmdline_addr-real_addr-16;        /* SP (-16 is paranoia) */

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] qemu-xen: fix compiler warning in load_linux, Olaf Hering <=