[virglrenderer-devel] [PATCH 03/21] virglrenderer.c: Fix warning

Gert Wollny gert.wollny at collabora.com
Fri Jun 1 08:47:50 UTC 2018


virglrenderer.c: In function »virgl_renderer_cleanup«:
virglrenderer.c:272:35: Warning: unused parameter »cookie« [-Wunused-
parameter]
 void virgl_renderer_cleanup(void *cookie)

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/virglrenderer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virglrenderer.c b/src/virglrenderer.c
index c89cb60..ef98ad5 100644
--- a/src/virglrenderer.c
+++ b/src/virglrenderer.c
@@ -271,6 +271,7 @@ void virgl_renderer_poll(void)
 
 void virgl_renderer_cleanup(void *cookie)
 {
+   VREND_UNUSED(cookie);
    vrend_renderer_fini();
 #ifdef HAVE_EPOXY_EGL_H
    if (use_context == CONTEXT_EGL) {
-- 
2.17.0



More information about the virglrenderer-devel mailing list