gallium/util: fix pipe_debug_message macro to allow 0 args
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 20:08:23 +0000 (15:08 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 20:24:17 +0000 (15:24 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug.h

index aaf223c6f6859393825c11f58811af799bc96c53..99007039a7c6b08e0158426f3d94c7a5b08e5d7d 100644 (file)
@@ -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;