[5933] Fix some new warnings introduced after r5022
Revision: 5933
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5933 Author: blueswir1 Date: 2008-12-07 19:30:18 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
Fix some new warnings introduced after r5022
Modified Paths:
--------------
trunk/gdbstub.c
trunk/hw/virtio.c
trunk/net.c
trunk/vl.c
Modified: trunk/gdbstub.c
===================================================================
gdbstub.c +0 -2
@@ -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;
Modified: trunk/hw/virtio.c
===================================================================
hw/virtio.c +1 -1
@@ -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;
Modified: trunk/net.c
===================================================================
net.c +2 -2
@@ -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;
Modified: trunk/vl.c
===================================================================
vl.c +2 -2
@@ -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
Am 07.12.2008 um 20:30 schrieb Blue Swirl:
Quoted 9 lines
Revision: 5933
http://svn.sv.gnu.org/viewvc/? view=rev&root=qemu&revision=5933 Author: blueswir1 Date: 2008-12-07 19:30:18 +0000 (Sun, 07 Dec 2008)Log Message:
-----------
Fix some new warnings introduced after r5022
Starting this evening I get a lot of these on OSX:
../qemu-common.h:107: warning: redundant redeclaration of ‘fls’ /usr/include/string.h:123: warning: previous declaration of ‘fls’ was here
Andreas
Quoted 15 lines · Andreas Färber
Am 07.12.2008 um 20:30 schrieb Blue Swirl:
Quoted 2 lines
Revision: 5933
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5933
Quoted 7 lines
Author: blueswir1 Date: 2008-12-07 19:30:18 +0000 (Sun, 07 Dec 2008)Log Message:
-----------
Fix some new warnings introduced after r5022
Quoted 4 lines
Starting this evening I get a lot of these on OSX:
../qemu-common.h:107: warning: redundant redeclaration of 'fls'/usr/include/string.h:123: warning: previous declaration of 'fls' was here
The function should probably be renamed to qemu_fls.