[Mesa-dev] [PATCH v2 02/29] gallium/aux/util/u_debug_describe.c: Silence an -Wunused-param warning

Gert Wollny gw.fossdev at gmail.com
Thu Nov 16 15:09:35 UTC 2017


Annotate the unused parameter.

v2: move UNUSED decoration in front of parameter declaration 

Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com> (v1)

---
 src/gallium/auxiliary/util/u_debug_describe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_debug_describe.c b/src/gallium/auxiliary/util/u_debug_describe.c
index f428d22d20..4bcd5624af 100644
--- a/src/gallium/auxiliary/util/u_debug_describe.c
+++ b/src/gallium/auxiliary/util/u_debug_describe.c
@@ -30,7 +30,7 @@
 #include "util/u_string.h"
 
 void
-debug_describe_reference(char* buf, const struct pipe_reference*ptr)
+debug_describe_reference(char* buf, UNUSED const struct pipe_reference*ptr)
 {
    strcpy(buf, "pipe_object");
 }
-- 
2.13.6



More information about the mesa-dev mailing list