gallium/aux/util/u_debug_refcnt.h: Fix -Wunused-param warnings
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:54 +0000 (16:09 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:27:57 +0000 (09:27 -0700)
Annotate the according parameters accordingly.

v2: move UNUSED decoration in front of parameter declaration

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
src/gallium/auxiliary/util/u_debug_refcnt.h

index cf0477766619a5fa2a474b9d2089c24f0382ce87..e1b4adbaf731fd18a86408f8b4e8c3c071077a30 100644 (file)
@@ -55,8 +55,8 @@ debug_reference(const struct pipe_reference* p,
 #else
 
 static inline void
-debug_reference(const struct pipe_reference* p,
-                debug_reference_descriptor get_desc, int change)
+debug_reference(UNUSED const struct pipe_reference* p,
+                UNUSED debug_reference_descriptor get_desc, UNUSED int change)
 {
 }