util: better fix for unused variable warnings with asserts
authorKeith Whitwell <keithw@vmware.com>
Mon, 28 Dec 2009 11:05:06 +0000 (11:05 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 28 Dec 2009 11:06:11 +0000 (11:06 +0000)
commitf0ba7d897d1c22202531acb70f134f2edc30557d
tree8312b86486c1e31a9803497c375bcc9991145678
parent31d1822473bf9d4105bb82b67572cfeea53aaf94
util: better fix for unused variable warnings with asserts

Modify the non-debug (ie disabled) version of assert to expose the
value in the expression to the compiler (avoiding the unused variable
messages) while still expanding to a noop.
src/gallium/auxiliary/util/u_debug.h