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

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


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

v2: Use mesa-style UNUSED for unused parameters 

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

diff --git a/src/virglrenderer.c b/src/virglrenderer.c
index c89cb60..c2ef019 100644
--- a/src/virglrenderer.c
+++ b/src/virglrenderer.c
@@ -269,7 +269,7 @@ void virgl_renderer_poll(void)
    vrend_renderer_check_fences();
 }
 
-void virgl_renderer_cleanup(void *cookie)
+void virgl_renderer_cleanup(UNUSED void *cookie)
 {
    vrend_renderer_fini();
 #ifdef HAVE_EPOXY_EGL_H
-- 
2.16.4



More information about the virglrenderer-devel mailing list