aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_core.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-08-31 10:14:26 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-08-31 10:14:26 +0100
commitbc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b (patch)
tree836c8b26d2b6d02e66068dbedef8cf1438add295 /tools/libxc/xc_core.c
parentbf6b9756fa9376ec23d0348ac71bb3190479a494 (diff)
downloadxen-bc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b.tar.gz
xen-bc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b.tar.bz2
xen-bc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b.zip
libxc: Avoid a constant-zero-sized memset().
Some environments warn about this, which fails the build. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r--tools/libxc/xc_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c
index 8121a08bf0..0c226ac7b2 100644
--- a/tools/libxc/xc_core.c
+++ b/tools/libxc/xc_core.c
@@ -321,7 +321,8 @@ elfnote_dump_none(void *args, dumpcore_rtn_t dump_rtn)
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;