Adjust non-debug ASSERT() definition to avoid unused-variable warnings.

Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Keir Fraser committed 2011-08-22 16:15:19 +01:00
1 parent e7fc68d874
commit 1ded71e27c
1 file changed
+1 -1
+1 -1
View File
@@ -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) ({ \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.