Fix compiler warning.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 18 Apr 2007 18:11:47 +0000 (18:11 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 18 Apr 2007 18:11:47 +0000 (18:11 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2702 c046a42c-6fe2-441c-8c8c-71466251a162

vl.c

diff --git a/vl.c b/vl.c
index ab7aacf..999fcef 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -6143,7 +6143,10 @@ void main_loop_wait(int timeout)
 {
     IOHandlerRecord *ioh;
     fd_set rfds, wfds, xfds;
-    int ret, ret2, nfds, i;
+    int ret, nfds;
+#ifdef _WIN32
+    int ret2, i;
+#endif
     struct timeval tv;
     PollingEntry *pe;