summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-12-04 15:08:23 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2015-12-04 15:24:17 -0500
commita3f90ef0a6b47488171abb32c6471b7d92f5e0fa (patch)
tree66df9a78a459e5065694e39df8fb4c9ef0246e9f
parenta69ac4e89c1c3edc33eb4e9361229a3f25de3ee6 (diff)
gallium/util: fix pipe_debug_message macro to allow 0 args
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/gallium/auxiliary/util/u_debug.h2
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 aaf223c6f68..99007039a7c 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -270,7 +270,7 @@ void _debug_assert_fail(const char *expr,
static unsigned id = 0; \
_pipe_debug_message(cb, &id, \
PIPE_DEBUG_TYPE_ ## type, \
- fmt, __VA_ARGS__); \
+ fmt, ##__VA_ARGS__); \
} while (0)
struct pipe_debug_callback;