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

[Xen-changelog] [xen-unstable] Make Xen headers lint-clean, and fix xs_wire.h for Solaris compiler.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1181904654 -3600
# Node ID f1ba2e652724cb505a85eef64eaafe9774421011
# Parent  ba61ec7df6321221450dbe512019c43468891a02
Make Xen headers lint-clean, and fix xs_wire.h for Solaris compiler.
Signed-off-by: John Levon <john.levon@xxxxxxx>
Signed-off-by: Ryan Scott <ryan.scott@xxxxxxx>
---
 xen/include/public/io/ring.h    |    2 +-
 xen/include/public/io/xs_wire.h |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff -r ba61ec7df632 -r f1ba2e652724 xen/include/public/io/ring.h
--- a/xen/include/public/io/ring.h      Fri Jun 15 10:36:31 2007 +0100
+++ b/xen/include/public/io/ring.h      Fri Jun 15 11:50:54 2007 +0100
@@ -133,7 +133,7 @@ typedef struct __name##_back_ring __name
 #define SHARED_RING_INIT(_s) do {                                       \
     (_s)->req_prod  = (_s)->rsp_prod  = 0;                              \
     (_s)->req_event = (_s)->rsp_event = 1;                              \
-    memset((_s)->pad, 0, sizeof((_s)->pad));                            \
+    (void)memset((_s)->pad, 0, sizeof((_s)->pad));                      \
 } while(0)
 
 #define FRONT_RING_INIT(_r, _s, __size) do {                            \
diff -r ba61ec7df632 -r f1ba2e652724 xen/include/public/io/xs_wire.h
--- a/xen/include/public/io/xs_wire.h   Fri Jun 15 10:36:31 2007 +0100
+++ b/xen/include/public/io/xs_wire.h   Fri Jun 15 11:50:54 2007 +0100
@@ -60,7 +60,11 @@ struct xsd_errors
     const char *errstring;
 };
 #define XSD_ERROR(x) { x, #x }
-static struct xsd_errors xsd_errors[] __attribute__((unused)) = {
+static struct xsd_errors xsd_errors[]
+#if defined(__GNUC__)
+__attribute__((unused))
+#endif
+    = {
     XSD_ERROR(EINVAL),
     XSD_ERROR(EACCES),
     XSD_ERROR(EEXIST),

_______________________________________________
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®.