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

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH 1/1] Compiler Warning Fix

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 1/1] Compiler Warning Fix
From: "Anthony Boorsma" <Anthony.Boorsma@xxxxxxxxxxxxxxx>
Date: Tue, 6 Apr 2010 14:22:16 -0400
Cc: Keir.Fraser@xxxxxxxxxx
Delivery-date: 2010年4月06日 11:23:09 -0700
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
Thread-index: AcrVthY3xf7yRqpMQ8GPxL+ZKWL1pw==
Thread-topic: [Xen-devel] [PATCH 1/1] Compiler Warning Fix

This patch fixes a compiler warning in the file xc_core.c. This fix is needed because warnings are treated as errors with the new gcc in Ubuntu 9.10.

The fix was also included in a previous submission “[Xen-devel] [PATCH 1/1] Xen ARINC653 scheduler” and is now being resubmitted as a separate patch.

Anthony Boorsma

www.DornerWorks.com

diff -rupN a/SW/Xen/src/tools/libxc/xc_core.c b/SW/Xen/src/tools/libxc/xc_core.c

--- a/SW/Xen/src/tools/libxc/xc_core.c 2010年04月06日 12:59:44.343043800 -0400

+++ b/SW/Xen/src/tools/libxc/xc_core.c 2010年04月06日 13:01:36.359332600 -0400

@@ -321,7 +321,15 @@ elfnote_dump_none(void *args, dumpcore_r

struct xen_dumpcore_elfnote_none_desc none;

elfnote_init(&elfnote);

- memset(&none, 0, sizeof(none));

+ /*

+ * josh holtrop <DornerWorks.com> - 2009年01月04日 - avoid compilation problem

+ * with warning "memset used with constant zero length parameter" and

+ * warnings treated as errors with the new gcc in Ubuntu 9.10

+ */

+ if (sizeof(none) > 0)

+ {

+ memset(&none, 0, sizeof(none));

+ }

elfnote.descsz = sizeof(none);

elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE;

Attachment: dornerworks-compiler_warning_fix-xen-3.4.1.patch
Description: dornerworks-compiler_warning_fix-xen-3.4.1.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [PATCH] pv-grub: fix boot crash when no fb is available , Jeremy Fitzhardinge
Next by Date: [Xen-devel] Re: X-Server doesn't start under Xen 4.0-rc9 & 2.6.31.11 pvops on top of F12 , Jeremy Fitzhardinge
Previous by Thread: [Xen-devel] xc_mca_op(): MCA hypercall test driver , Mukesh Rathor
Next by Thread: Re: [Xen-devel] [PATCH 1/1] Compiler Warning Fix , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /