[Mesa-dev] [PATCH v2 27/29] gallium/aux/util/u_debug_image.c: Silence warnings -Wunused-param

Gert Wollny gw.fossdev at gmail.com
Thu Nov 16 15:10:00 UTC 2017


Decorate the according parameters with UNUSED.

Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
---
 src/gallium/auxiliary/util/u_debug_image.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug_image.c b/src/gallium/auxiliary/util/u_debug_image.c
index 98d73a63de..f0fd6cf833 100644
--- a/src/gallium/auxiliary/util/u_debug_image.c
+++ b/src/gallium/auxiliary/util/u_debug_image.c
@@ -47,7 +47,7 @@
  */
 void
 debug_dump_image(const char *prefix,
-                 enum pipe_format format, unsigned cpp,
+                 enum pipe_format format, UNUSED unsigned cpp,
                  unsigned width, unsigned height,
                  unsigned stride,
                  const void *data)
@@ -202,7 +202,7 @@ debug_dump_surface_bmp(struct pipe_context *pipe,
 }
 
 void
-debug_dump_transfer_bmp(struct pipe_context *pipe,
+debug_dump_transfer_bmp(UNUSED struct pipe_context *pipe,
                         const char *filename,
                         struct pipe_transfer *transfer, void *ptr)
 {
-- 
2.13.6



More information about the mesa-dev mailing list