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

[Xen-changelog] [xen-unstable] Adjust non-debug ASSERT() definition to avoid unused-variable warnings.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1314026119 -3600
# Node ID d1cd78a73a79e0e648937322cdb8d92a7f86327a
# Parent  ab664a21ae45a8c86b5ffdb73f171c72c2ae5615
Adjust non-debug ASSERT() definition to avoid unused-variable warnings.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r ab664a21ae45 -r d1cd78a73a79 xen/include/xen/lib.h
--- a/xen/include/xen/lib.h     Mon Aug 22 14:37:29 2011 +0100
+++ b/xen/include/xen/lib.h     Mon Aug 22 16:15:19 2011 +0100
@@ -37,7 +37,7 @@
 #define ASSERT(p) \
     do { if ( unlikely(!(p)) ) assert_failed(#p); } while (0)
 #else
-#define ASSERT(p) ((void)0)
+#define ASSERT(p) do { if ( 0 && (p) ); } while (0)
 #endif
 
 #define ABS(_x) ({                              \

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