WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Adjust non-debug ASSERT() definition to a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Adjust non-debug ASSERT() definition to avoid unused-variable warnings.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 24 Aug 2011 22:44:09 +0100
Delivery-date: Wed, 24 Aug 2011 14:44:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Adjust non-debug ASSERT() definition to avoid unused-variable warnings., Xen patchbot-unstable <=