projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ee34e
)
util: fix debug_assert() to avoid unused variable warnings in release builds
author
Keith Whitwell
<keithw@vmware.com>
Thu, 12 Mar 2009 16:56:24 +0000
(16:56 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 12 Mar 2009 16:57:30 +0000
(16:57 +0000)
src/gallium/auxiliary/util/u_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index b298b9b66dbacef0b8ac3eee5faccbd1a9caca59..7c829707b2011d29eeecfd75759b36bec7e13213 100644
(file)
--- 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