vrend: Fix newly introduced warnings

The fuzzer series added a few warnings that need to be silenced.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: David Riley <davidriley@chromium.org>
macos/master
Gert Wollny 6 years ago
parent 095686af68
commit a07a3f6f96
  1. 3
      src/vrend_renderer.c
  2. 22
      vtest/vtest_renderer.c

@ -5646,7 +5646,8 @@ vrend_renderer_fini(void)
if (!vrend_state.inited) if (!vrend_state.inited)
return; return;
vrend_resource_set_destroy_callback(vrend_renderer_resource_destroy); typedef void (*destroy_callback)(void *);
vrend_resource_set_destroy_callback((destroy_callback)vrend_renderer_resource_destroy);
vrend_free_sync_thread(); vrend_free_sync_thread();
if (vrend_state.eventfd != -1) { if (vrend_state.eventfd != -1) {

@ -614,9 +614,9 @@ int vtest_transfer_get_nop(UNUSED uint32_t length_dw)
{ {
uint32_t thdr_buf[VCMD_TRANSFER_HDR_SIZE]; uint32_t thdr_buf[VCMD_TRANSFER_HDR_SIZE];
int ret; int ret;
int level; UNUSED int level;
uint32_t stride, layer_stride, handle; UNUSED uint32_t stride, layer_stride, handle;
struct virgl_box box; UNUSED struct virgl_box box;
uint32_t data_size; uint32_t data_size;
void *ptr; void *ptr;
@ -700,9 +700,9 @@ int vtest_transfer_put_nop(UNUSED uint32_t length_dw)
{ {
uint32_t thdr_buf[VCMD_TRANSFER_HDR_SIZE]; uint32_t thdr_buf[VCMD_TRANSFER_HDR_SIZE];
int ret; int ret;
int level; UNUSED int level;
uint32_t stride, layer_stride, handle; UNUSED uint32_t stride, layer_stride, handle;
struct virgl_box box; UNUSED struct virgl_box box;
uint32_t data_size; uint32_t data_size;
void *ptr; void *ptr;
@ -792,9 +792,9 @@ int vtest_transfer_get2_nop(UNUSED uint32_t length_dw)
{ {
uint32_t thdr_buf[VCMD_TRANSFER2_HDR_SIZE]; uint32_t thdr_buf[VCMD_TRANSFER2_HDR_SIZE];
int ret; int ret;
int level; UNUSED int level;
uint32_t handle; uint32_t handle;
struct virgl_box box; UNUSED struct virgl_box box;
uint32_t offset; uint32_t offset;
struct iovec *iovec; struct iovec *iovec;
@ -859,11 +859,11 @@ int vtest_transfer_put2_nop(UNUSED uint32_t length_dw)
{ {
uint32_t thdr_buf[VCMD_TRANSFER2_HDR_SIZE]; uint32_t thdr_buf[VCMD_TRANSFER2_HDR_SIZE];
int ret; int ret;
int level; UNUSED int level;
uint32_t handle; uint32_t handle;
struct virgl_box box; UNUSED struct virgl_box box;
UNUSED uint32_t data_size; UNUSED uint32_t data_size;
uint32_t offset; UNUSED uint32_t offset;
struct iovec *iovec; struct iovec *iovec;
ret = renderer.input->read(renderer.input, thdr_buf, sizeof(thdr_buf)); ret = renderer.input->read(renderer.input, thdr_buf, sizeof(thdr_buf));

Loading…
Cancel
Save