[virglrenderer-devel] [PATCH 07/16] gallium/aux/util/u_debug_refcnt.h: Fix warnings:
Gert Wollny
gert.wollny at collabora.com
Thu May 31 09:15:39 UTC 2018
u_debug_refcnt.h: In function 'debug_reference':
u_debug_refcnt.h:39:65: warning: unused parameter 'p'
u_debug_refcnt.h:39:95: warning: unused parameter 'get_desc'
u_debug_refcnt.h:39:109: warning: unused parameter 'change'
[-Wunused-parameter]
static inline void debug_reference(const struct pipe_reference* p,
debug_reference_descriptor get_desc, int change)
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/gallium/auxiliary/util/u_debug_refcnt.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.h b/src/gallium/auxiliary/util/u_debug_refcnt.h
index f054dce..f129c89 100644
--- a/src/gallium/auxiliary/util/u_debug_refcnt.h
+++ b/src/gallium/auxiliary/util/u_debug_refcnt.h
@@ -30,6 +30,8 @@
#include "pipe/p_config.h"
#include "pipe/p_state.h"
+#include "util/u_debug.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -38,6 +40,9 @@ typedef void (*debug_reference_descriptor)(char*, const struct pipe_reference*);
static inline void debug_reference(const struct pipe_reference* p, debug_reference_descriptor get_desc, int change)
{
+ VREND_UNUSED(p);
+ VREND_UNUSED(get_desc);
+ VREND_UNUSED(change);
}
#ifdef __cplusplus
--
2.16.1
More information about the virglrenderer-devel
mailing list