[Mesa-dev] [PATCH 3/9] meta: Silence unused parameter warning

Jason Ekstrand jason at jlekstrand.net
Fri Jun 16 22:56:38 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Fri, Jun 16, 2017 at 2:01 PM, Ian Romanick <idr at freedesktop.org> wrote:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> drivers/common/meta.c:2694:71: warning: unused parameter ‘dims’
> [-Wunused-parameter]
>  copytexsubimage_using_blit_framebuffer(struct gl_context *ctx, GLuint
> dims,
>                                                                        ^~~~
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/drivers/common/meta.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/
> meta.c
> index 1ff4651..39499c7 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -2770,7 +2770,7 @@ get_temp_image_type(struct gl_context *ctx,
> mesa_format format)
>   * glBlitFramebuffer() to implement glCopyTexSubImage().
>   */
>  static bool
> -copytexsubimage_using_blit_framebuffer(struct gl_context *ctx, GLuint
> dims,
> +copytexsubimage_using_blit_framebuffer(struct gl_context *ctx,
>                                         struct gl_texture_image *texImage,
>                                         GLint xoffset,
>                                         GLint yoffset,
> @@ -2864,7 +2864,7 @@ _mesa_meta_CopyTexSubImage(struct gl_context *ctx,
> GLuint dims,
>     GLint bpp;
>     void *buf;
>
> -   if (copytexsubimage_using_blit_framebuffer(ctx, dims,
> +   if (copytexsubimage_using_blit_framebuffer(ctx,
>                                                texImage,
>                                                xoffset, yoffset, zoffset,
>                                                rb,
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170616/f98f685c/attachment.html>


More information about the mesa-dev mailing list