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

Gert Wollny gert.wollny at collabora.com
Tue Jun 5 20:11:13 UTC 2018


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

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 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)
-- 
2.16.4



More information about the virglrenderer-devel mailing list