]> git.proxmox.com Git - qemu.git/commitdiff
Fix some new warnings introduced after r5022
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Dec 2008 19:30:18 +0000 (19:30 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Dec 2008 19:30:18 +0000 (19:30 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5933 c046a42c-6fe2-441c-8c8c-71466251a162

gdbstub.c
hw/virtio.c
net.c
vl.c

index 452b7d0ecdb26c1edbdc4966d9f5e4d58c786f8d..8967276f3f4297db2861fc54512470a505fc8202 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1602,8 +1602,6 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
     return RS_IDLE;
 }
 
-extern void tb_flush(CPUState *env);
-
 void gdb_set_stop_cpu(CPUState *env)
 {
     gdbserver_state->c_cpu = env;
index bfa6a40ac83cc081474c23fb9299b001b15d3a12..24a4b267180ea88ee0fb259a809e05e23d80c9dd 100644 (file)
@@ -485,7 +485,7 @@ static void virtio_update_irq(VirtIODevice *vdev)
     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 10d23b41f603d39028d8e482d445aca96e6089f5..cbf1cdf35c8982d16e27341e66dbd7fc158d533d 100644 (file)
--- a/net.c
+++ b/net.c
@@ -284,8 +284,8 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str)
     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 00adb79978c7c0a595771d10350823c41a9b0acf..c6d888ce4db35d3fa46e112bd44aebfbffa52aa5 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3526,7 +3526,7 @@ void qemu_system_powerdown_request(void)
 }
 
 #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 @@ void host_main_loop_wait(int *timeout)
     *timeout = 0;
 }
 #else
-void host_main_loop_wait(int *timeout)
+static void host_main_loop_wait(int *timeout)
 {
 }
 #endif