gallium/aux/util/u_transfer.c: Fix some -Wunused-param warnings.
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:49 +0000 (16:09 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:27:57 +0000 (09:27 -0700)
Decorate the params with "UNUSED" 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_transfer.c

index ba4b9dcc6b345d553cbaf86bca8e6a2e779e5207..3089bcb1f340381f35d89b26b3380e8284063e8a 100644 (file)
@@ -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(UNUSED struct pipe_screen *screen,
+                                      UNUSED struct pipe_resource *resource,
+                                      UNUSED struct winsys_handle *handle)
 {
    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(UNUSED struct pipe_context *pipe,
+                                     UNUSED struct pipe_transfer *transfer,
+                                     UNUSED const struct pipe_box *box)
 {
    /* 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(UNUSED struct pipe_context *pipe,
+                              UNUSED struct pipe_transfer *transfer)
 {
 }
 
@@ -111,10 +111,10 @@ u_resource( struct pipe_resource *res )
 }
 
 boolean u_resource_get_handle_vtbl(struct pipe_screen *screen,
-                                   struct pipe_context *ctx,
+                                   UNUSED struct pipe_context *ctx,
                                    struct pipe_resource *resource,
                                    struct winsys_handle *handle,
-                                   unsigned usage)
+                                   UNUSED unsigned usage)
 {
    struct u_resource *ur = u_resource(resource);
    return ur->vtbl->resource_get_handle(screen, resource, handle);