[virglrenderer-devel] [PATCH 17/21] testvirgl.c: Fix warnings
Gert Wollny
gert.wollny at collabora.com
Fri Jun 1 08:48:04 UTC 2018
testvirgl.c: In function »testvirgl_write_fence«:
testvirgl.c:98:41: Warning: unused parameter »cookie« [-Wunused-
parameter]
static void testvirgl_write_fence(void *cookie, uint32_t fence)
^~~~~~
testvirgl.c: In function »get_caps«:
testvirgl.c:272:33: Warning: Variable »glsl_level« unused
[-Wunused-variable]
uint32_t max_ver, max_size, glsl_level;
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
tests/testvirgl.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/testvirgl.c b/tests/testvirgl.c
index f4ae92d..85b68e0 100644
--- a/tests/testvirgl.c
+++ b/tests/testvirgl.c
@@ -97,7 +97,8 @@ static struct virgl_renderer_callbacks test_cbs;
static uint32_t testvirgl_last_fence;
static void testvirgl_write_fence(void *cookie, uint32_t fence)
{
- testvirgl_last_fence = fence;
+ VREND_UNUSED(cookie);
+ testvirgl_last_fence = fence;
}
uint32_t testvirgl_get_last_fence(void)
@@ -269,7 +270,7 @@ int testvirgl_create_backed_simple_buffer(struct virgl_resource *res,
static void *get_caps(void)
{
- uint32_t max_ver, max_size, glsl_level;
+ uint32_t max_ver, max_size;
void *caps;
virgl_renderer_get_cap_set(1, &max_ver, &max_size);
--
2.17.0
More information about the virglrenderer-devel
mailing list