[virglrenderer-devel] [PATCH 01/16] gallium/auxiliary/util: Add macro to silence unused parameter warning
Gert Wollny
gert.wollny at collabora.com
Thu May 31 09:15:33 UTC 2018
The file "src/gallium/auxiliary/util/u_debug.h" was choosen because it is
included by most other files, and adding another file for just one macro seemed
a bit too much.
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/gallium/auxiliary/util/u_debug.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 03fcf43..fd80ab1 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -48,6 +48,8 @@
extern "C" {
#endif
+#define VREND_UNUSED(X) (void)X
+
#if defined(__GNUC__)
#define _util_printf_format(fmt, list) __attribute__ ((format (printf, fmt, list)))
--
2.16.1
More information about the virglrenderer-devel
mailing list