diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-03-12 16:56:24 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-03-12 16:57:30 +0000 |
commit | d885c9dad15b64fd40c4c4d5cda6713a3e06a9ae (patch) | |
tree | 329bca98203c9665515266af1c034c116e632e4f | |
parent | e8ee34e7f34c51121dcfa6c763fc5eb900b562df (diff) |
util: fix debug_assert() to avoid unused variable warnings in release builds
-rw-r--r-- | src/gallium/auxiliary/util/u_debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index b298b9b66d..7c829707b2 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_debug.h @@ -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 |