Commit 877cf882321aeb74b246043d3970e1c707a89f1e
1 parent
e6b1e558
Fix compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2702 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
1 deletions
vl.c
@@ -6143,7 +6143,10 @@ void main_loop_wait(int timeout) | @@ -6143,7 +6143,10 @@ void main_loop_wait(int timeout) | ||
6143 | { | 6143 | { |
6144 | IOHandlerRecord *ioh; | 6144 | IOHandlerRecord *ioh; |
6145 | fd_set rfds, wfds, xfds; | 6145 | fd_set rfds, wfds, xfds; |
6146 | - int ret, ret2, nfds, i; | 6146 | + int ret, nfds; |
6147 | +#ifdef _WIN32 | ||
6148 | + int ret2, i; | ||
6149 | +#endif | ||
6147 | struct timeval tv; | 6150 | struct timeval tv; |
6148 | PollingEntry *pe; | 6151 | PollingEntry *pe; |
6149 | 6152 |