From 8fa942c9dd98a1921fbffbcb6b3f85fea8eda1c8 Mon Sep 17 00:00:00 2001
From: Johannes Schindelin <johannes.schindelin@gmx.de>
Date: Tue, 27 Jun 2017 23:40:17 +0200
Subject: win32/select: work around a compiler warning

The `tend` variable is only ever initialized and used if the timeout is
*not* infinite.

However, GCC is not smart enough to figure that out. So just initialize
the variable to 0 and be done with it already.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ron Yorston <rmy@pobox.com>
---
 win32/select.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32/select.c b/win32/select.c
index 416174b3e..a7e30182d 100644
--- a/win32/select.c
+++ b/win32/select.c
@@ -252,7 +252,7 @@ mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds,
   DWORD ret, wait_timeout, nhandles, nsock, nbuffer;
   MSG msg;
   int i, fd, rc;
-  clock_t tend;
+  clock_t tend = 0;
 
   if (nfds > FD_SETSIZE)
     nfds = FD_SETSIZE;
-- 
cgit v1.2.3-55-g6feb