[virglrenderer-devel] [PATCH 16/21] vrend_blitter.c, vrend_egl_context.c: Fix warnings

Gert Wollny gert.wollny at collabora.com
Fri Jun 1 08:48:03 UTC 2018


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

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/virgl_egl_context.c | 1 +
 src/vrend_blitter.c     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/virgl_egl_context.c b/src/virgl_egl_context.c
index c1a1b9a..0f66239 100644
--- a/src/virgl_egl_context.c
+++ b/src/virgl_egl_context.c
@@ -277,6 +277,7 @@ int virgl_egl_make_context_current(struct virgl_egl *ve, virgl_renderer_gl_conte
 
 virgl_renderer_gl_context virgl_egl_get_current_context(struct virgl_egl *ve)
 {
+   VREND_UNUSED(ve);
    EGLContext eglctx = eglGetCurrentContext();
    return (virgl_renderer_gl_context)eglctx;
 }
diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c
index 042a115..13d5f53 100644
--- a/src/vrend_blitter.c
+++ b/src/vrend_blitter.c
@@ -604,6 +604,7 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
                             struct vrend_resource *dst_res,
                             const struct pipe_blit_info *info)
 {
+   VREND_UNUSED(ctx);
    struct vrend_blitter_ctx *blit_ctx = &vrend_blit_ctx;
    GLuint buffers;
    GLuint prog_id;
-- 
2.17.0



More information about the virglrenderer-devel mailing list