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

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



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

Some environments warn about this, which fails the build.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   20138:cce683039b70
xen-unstable date:        Mon Aug 31 10:14:26 2009 +0100
---
 tools/libxc/xc_core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r c0263626c810 -r 23cbeb127ff9 tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     Thu Sep 03 10:05:43 2009 +0100
+++ b/tools/libxc/xc_core.c     Thu Sep 03 10:08:00 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®.