Fix some new warnings introduced after r5022 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5933 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/gdbstub.c b/gdbstub.c index 452b7d0..8967276 100644 --- a/gdbstub.c +++ b/gdbstub.c
@@ -1602,8 +1602,6 @@ return RS_IDLE; } -extern void tb_flush(CPUState *env); - void gdb_set_stop_cpu(CPUState *env) { gdbserver_state->c_cpu = env;
diff --git a/hw/virtio.c b/hw/virtio.c index bfa6a40..24a4b26 100644 --- a/hw/virtio.c +++ b/hw/virtio.c
@@ -485,7 +485,7 @@ qemu_set_irq(vdev->pci_dev.irq[0], vdev->isr & 1); } -void virtio_reset(void *opaque) +static void virtio_reset(void *opaque) { VirtIODevice *vdev = opaque; int i;
diff --git a/net.c b/net.c index 10d23b4..cbf1cdf 100644 --- a/net.c +++ b/net.c
@@ -284,8 +284,8 @@ return 0; } -#ifndef _WIN32 -int parse_unix_path(struct sockaddr_un *uaddr, const char *str) +#if !defined(_WIN32) && 0 +static int parse_unix_path(struct sockaddr_un *uaddr, const char *str) { const char *p; int len;
diff --git a/vl.c b/vl.c index 00adb79..c6d888c 100644 --- a/vl.c +++ b/vl.c
@@ -3526,7 +3526,7 @@ } #ifdef _WIN32 -void host_main_loop_wait(int *timeout) +static void host_main_loop_wait(int *timeout) { int ret, ret2, i; PollingEntry *pe; @@ -3570,7 +3570,7 @@ *timeout = 0; } #else -void host_main_loop_wait(int *timeout) +static void host_main_loop_wait(int *timeout) { } #endif