[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxc: Avoid a constant-zero-sized memset().



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251710066 -3600
# Node ID cce683039b70b2f0f5bc28f7107073d3ed1d22b3
# Parent  f86c46e01f07cc9841c78f8d250dbe18fe176d9b
libxc: Avoid a constant-zero-sized memset().

Some environments warn about this, which fails the build.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/libxc/xc_core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r f86c46e01f07 -r cce683039b70 tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     Mon Aug 31 10:12:10 2009 +0100
+++ b/tools/libxc/xc_core.c     Mon Aug 31 10:14:26 2009 +0100
@@ -321,7 +321,8 @@ elfnote_dump_none(void *args, dumpcore_r
     struct xen_dumpcore_elfnote_none_desc none;
 
     elfnote_init(&elfnote);
-    memset(&none, 0, sizeof(none));
+    /* Avoid compile warning about constant-zero-sized memset(). */
+    /*memset(&none, 0, sizeof(none));*/
 
     elfnote.descsz = sizeof(none);
     elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.