[Mesa-dev] [PATCH v2 20/29] gallium/aux/util/u_blit.c: Fix -Wunused-param warnings

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


Annotate the parameters accordingly.

v2: move UNUSED decoration in front of parameter declaration

Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
v1: Reviewed-by: Brian Paul <brianp at vmware.com> (v1)
---
 src/gallium/auxiliary/util/u_blit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 3e49667029..3f92476f0c 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -371,7 +371,7 @@ util_blit_pixels(struct blit_state *ctx,
                  struct pipe_surface *dst,
                  int dstX0, int dstY0,
                  int dstX1, int dstY1,
-                 float z, uint filter,
+                 MAYBE_UNUSED float z, uint filter,
                  uint writemask)
 {
    struct pipe_context *pipe = ctx->pipe;
-- 
2.13.6



More information about the mesa-dev mailing list