[Mesa-dev] [PATCH 16/23] gallium/aux/util/u_transfer.c: Fix some -Wunused-param warnings.

Gert Wollny gw.fossdev at gmail.com
Sun Nov 12 13:55:48 UTC 2017


Decorate the params with "UNUSED" accordingly.
---
 src/gallium/auxiliary/util/u_transfer.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_transfer.c b/src/gallium/auxiliary/util/u_transfer.c
index ba4b9dcc6b..10dc59a926 100644
--- a/src/gallium/auxiliary/util/u_transfer.c
+++ b/src/gallium/auxiliary/util/u_transfer.c
@@ -81,25 +81,25 @@ void u_default_texture_subdata(struct pipe_context *pipe,
 }
 
 
-boolean u_default_resource_get_handle(struct pipe_screen *screen,
-                                      struct pipe_resource *resource,
-                                      struct winsys_handle *handle)
+boolean u_default_resource_get_handle(struct pipe_screen *screen UNUSED,
+                                      struct pipe_resource *resource UNUSED,
+                                      struct winsys_handle *handle UNUSED)
 {
    return FALSE;
 }
 
 
 
-void u_default_transfer_flush_region( struct pipe_context *pipe,
-                                      struct pipe_transfer *transfer,
-                                      const struct pipe_box *box)
+void u_default_transfer_flush_region( struct pipe_context *pipe UNUSED,
+                                      struct pipe_transfer *transfer UNUSED,
+                                      const struct pipe_box *box UNUSED)
 {
    /* This is a no-op implementation, nothing to do.
     */
 }
 
-void u_default_transfer_unmap( struct pipe_context *pipe,
-                               struct pipe_transfer *transfer )
+void u_default_transfer_unmap( struct pipe_context *pipe UNUSED,
+                               struct pipe_transfer *transfer UNUSED)
 {
 }
 
@@ -111,10 +111,10 @@ u_resource( struct pipe_resource *res )
 }
 
 boolean u_resource_get_handle_vtbl(struct pipe_screen *screen,
-                                   struct pipe_context *ctx,
+                                   struct pipe_context *ctx UNUSED,
                                    struct pipe_resource *resource,
                                    struct winsys_handle *handle,
-                                   unsigned usage)
+                                   unsigned usage UNUSED)
 {
    struct u_resource *ur = u_resource(resource);
    return ur->vtbl->resource_get_handle(screen, resource, handle);
-- 
2.13.6



More information about the mesa-dev mailing list