Commit 69d6451c3e109eb1d2effe18fa6a7173d1aabdd4
1 parent
c2f01775
Fix some new warnings introduced after r5022
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5933 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
5 additions
and
7 deletions
gdbstub.c
@@ -1602,8 +1602,6 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) | @@ -1602,8 +1602,6 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) | ||
1602 | return RS_IDLE; | 1602 | return RS_IDLE; |
1603 | } | 1603 | } |
1604 | 1604 | ||
1605 | -extern void tb_flush(CPUState *env); | ||
1606 | - | ||
1607 | void gdb_set_stop_cpu(CPUState *env) | 1605 | void gdb_set_stop_cpu(CPUState *env) |
1608 | { | 1606 | { |
1609 | gdbserver_state->c_cpu = env; | 1607 | gdbserver_state->c_cpu = env; |
hw/virtio.c
@@ -485,7 +485,7 @@ static void virtio_update_irq(VirtIODevice *vdev) | @@ -485,7 +485,7 @@ static void virtio_update_irq(VirtIODevice *vdev) | ||
485 | qemu_set_irq(vdev->pci_dev.irq[0], vdev->isr & 1); | 485 | qemu_set_irq(vdev->pci_dev.irq[0], vdev->isr & 1); |
486 | } | 486 | } |
487 | 487 | ||
488 | -void virtio_reset(void *opaque) | 488 | +static void virtio_reset(void *opaque) |
489 | { | 489 | { |
490 | VirtIODevice *vdev = opaque; | 490 | VirtIODevice *vdev = opaque; |
491 | int i; | 491 | int i; |
net.c
@@ -284,8 +284,8 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str) | @@ -284,8 +284,8 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str) | ||
284 | return 0; | 284 | return 0; |
285 | } | 285 | } |
286 | 286 | ||
287 | -#ifndef _WIN32 | ||
288 | -int parse_unix_path(struct sockaddr_un *uaddr, const char *str) | 287 | +#if !defined(_WIN32) && 0 |
288 | +static int parse_unix_path(struct sockaddr_un *uaddr, const char *str) | ||
289 | { | 289 | { |
290 | const char *p; | 290 | const char *p; |
291 | int len; | 291 | int len; |
vl.c
@@ -3526,7 +3526,7 @@ void qemu_system_powerdown_request(void) | @@ -3526,7 +3526,7 @@ void qemu_system_powerdown_request(void) | ||
3526 | } | 3526 | } |
3527 | 3527 | ||
3528 | #ifdef _WIN32 | 3528 | #ifdef _WIN32 |
3529 | -void host_main_loop_wait(int *timeout) | 3529 | +static void host_main_loop_wait(int *timeout) |
3530 | { | 3530 | { |
3531 | int ret, ret2, i; | 3531 | int ret, ret2, i; |
3532 | PollingEntry *pe; | 3532 | PollingEntry *pe; |
@@ -3570,7 +3570,7 @@ void host_main_loop_wait(int *timeout) | @@ -3570,7 +3570,7 @@ void host_main_loop_wait(int *timeout) | ||
3570 | *timeout = 0; | 3570 | *timeout = 0; |
3571 | } | 3571 | } |
3572 | #else | 3572 | #else |
3573 | -void host_main_loop_wait(int *timeout) | 3573 | +static void host_main_loop_wait(int *timeout) |
3574 | { | 3574 | { |
3575 | } | 3575 | } |
3576 | #endif | 3576 | #endif |