From 5e5a82233a1c75b3d67362003787b164c7e959e7 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 5 Jun 2018 22:11:13 +0200 Subject: [PATCH] vrend_blitter.c, vrend_egl_context.c: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/virgl_egl_context.c | 2 +- src/vrend_blitter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virgl_egl_context.c b/src/virgl_egl_context.c index c1a1b9a..e850d23 100644 --- a/src/virgl_egl_context.c +++ b/src/virgl_egl_context.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; diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index 5bcaf72..68b5bab 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -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)