util: fix debug_assert() to avoid unused variable warnings in release builds

This commit is contained in:
Keith Whitwell 2009-03-12 16:56:24 +00:00
parent e8ee34e7f3
commit d885c9dad1
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void _debug_assert_fail(const char *expr,
#ifdef DEBUG
#define debug_assert(expr) ((expr) ? (void)0 : _debug_assert_fail(#expr, __FILE__, __LINE__, __FUNCTION__))
#else
#define debug_assert(expr) ((void)0)
#define debug_assert(expr) ((void)(expr))
#endif