Commit 69d6451c3e109eb1d2effe18fa6a7173d1aabdd4

Authored by blueswir1
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
gdbstub.c
... ... @@ -1602,8 +1602,6 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
1602 1602 return RS_IDLE;
1603 1603 }
1604 1604  
1605   -extern void tb_flush(CPUState *env);
1606   -
1607 1605 void gdb_set_stop_cpu(CPUState *env)
1608 1606 {
1609 1607 gdbserver_state->c_cpu = env;
... ...
hw/virtio.c
... ... @@ -485,7 +485,7 @@ static void virtio_update_irq(VirtIODevice *vdev)
485 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 490 VirtIODevice *vdev = opaque;
491 491 int i;
... ...
... ... @@ -284,8 +284,8 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str)
284 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 290 const char *p;
291 291 int len;
... ...
... ... @@ -3526,7 +3526,7 @@ void qemu_system_powerdown_request(void)
3526 3526 }
3527 3527  
3528 3528 #ifdef _WIN32
3529   -void host_main_loop_wait(int *timeout)
  3529 +static void host_main_loop_wait(int *timeout)
3530 3530 {
3531 3531 int ret, ret2, i;
3532 3532 PollingEntry *pe;
... ... @@ -3570,7 +3570,7 @@ void host_main_loop_wait(int *timeout)
3570 3570 *timeout = 0;
3571 3571 }
3572 3572 #else
3573   -void host_main_loop_wait(int *timeout)
  3573 +static void host_main_loop_wait(int *timeout)
3574 3574 {
3575 3575 }
3576 3576 #endif
... ...