vrend_blitter.c, vrend_egl_context.c: Fix warnings

vrend_blitter.c: In Funktion »vrend_renderer_blit_gl«:
vrend_blitter.c:602:51: Warnung: unused parameter »ctx« [-Wunused-
parameter]
 void vrend_renderer_blit_gl(struct vrend_context *ctx,
                                                   ^~~
virgl_egl_context.c: In Funktion »virgl_egl_get_current_context«:
virgl_egl_context.c:278:75: Warnung: unused parameter »ve« [-Wunused-
parameter]
 virgl_renderer_gl_context virgl_egl_get_current_context(struct
virgl_egl *ve)

v2: Use mesa style UNUSED annotation for unused parameters

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 7 years ago committed by Jakob Bornecrantz
parent 9b4254134d
commit 5e5a82233a
  1. 2
      src/virgl_egl_context.c
  2. 2
      src/vrend_blitter.c

@ -275,7 +275,7 @@ int virgl_egl_make_context_current(struct virgl_egl *ve, virgl_renderer_gl_conte
eglctx);
}
virgl_renderer_gl_context virgl_egl_get_current_context(struct virgl_egl *ve)
virgl_renderer_gl_context virgl_egl_get_current_context(UNUSED struct virgl_egl *ve)
{
EGLContext eglctx = eglGetCurrentContext();
return (virgl_renderer_gl_context)eglctx;

@ -683,7 +683,7 @@ static void calc_dst_deltas_from_src(const struct pipe_blit_info *info,
}
/* implement blitting using OpenGL. */
void vrend_renderer_blit_gl(struct vrend_context *ctx,
void vrend_renderer_blit_gl(UNUSED struct vrend_context *ctx,
struct vrend_resource *src_res,
struct vrend_resource *dst_res,
const struct pipe_blit_info *info)

Loading…
Cancel
Save