mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Adjust non-debug ASSERT() definition to avoid unused-variable warnings.
Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
e7fc68d874
commit
1ded71e27c
1 file changed
+1
-1
@@ -37,7 +37,7 @@ do { \
|
||||
#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) ({ \
|
||||
|
||||