testvirgl.c: Fix warnings

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« not used
[-Wunused-variable]
     uint32_t max_ver, max_size, glsl_level;

v2: use mesa style UNUSED annotation for unused parameters

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 7 years ago committed by Jakob Bornecrantz
parent 5e5a82233a
commit 5c8e9583fe
  1. 4
      tests/testvirgl.c

@ -95,7 +95,7 @@ static struct myinfo_struct mystruct;
static struct virgl_renderer_callbacks test_cbs; static struct virgl_renderer_callbacks test_cbs;
static uint32_t testvirgl_last_fence; static uint32_t testvirgl_last_fence;
static void testvirgl_write_fence(void *cookie, uint32_t fence) static void testvirgl_write_fence(UNUSED void *cookie, uint32_t fence)
{ {
testvirgl_last_fence = fence; testvirgl_last_fence = fence;
} }
@ -269,7 +269,7 @@ int testvirgl_create_backed_simple_buffer(struct virgl_resource *res,
static void *get_caps(void) static void *get_caps(void)
{ {
uint32_t max_ver, max_size, glsl_level; uint32_t max_ver, max_size;
void *caps; void *caps;
virgl_renderer_get_cap_set(1, &max_ver, &max_size); virgl_renderer_get_cap_set(1, &max_ver, &max_size);

Loading…
Cancel
Save