vtest: fix some warnings

macos/master
Dave Airlie 10 years ago
parent b5407f6602
commit a49e95abbe
  1. 3
      vtest/vtest_renderer.c
  2. 2
      vtest/vtest_server.c

@ -277,7 +277,6 @@ int vtest_resource_busy_wait(void)
{
uint32_t bw_buf[VCMD_BUSY_WAIT_SIZE];
int ret;
int handle;
int flags;
uint32_t hdr_buf[VTEST_HDR_SIZE];
uint32_t reply_buf[1];
@ -286,7 +285,7 @@ int vtest_resource_busy_wait(void)
if (ret != sizeof(bw_buf))
return -1;
handle = bw_buf[VCMD_BUSY_WAIT_HANDLE];
/* handle = bw_buf[VCMD_BUSY_WAIT_HANDLE]; unused as of now */
flags = bw_buf[VCMD_BUSY_WAIT_FLAGS];
if (flags == VCMD_BUSY_WAIT_FLAG_WAIT) {

@ -142,7 +142,7 @@ fail:
int main(int argc, char **argv)
{
int sock, new_fd, ret;
int sock, new_fd;
pid_t pid;
bool do_fork = true;
struct sigaction sa;

Loading…
Cancel
Save