gallium/util: fix pipe_debug_message macro to allow 0 args
[mesa.git] / 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;