From 60776a0515c2a8f572902ad5bcc9f63eeaeafa84 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 9 Jul 2018 18:43:55 +0200 Subject: curl-compilers: enable -Wbad-function-cast on GCC This warning used to be enabled only for clang as it's a bit stricter on GCC. Silence the remaining occurrences and enable it on GCC too. Closes https://github.com/curl/curl/pull/2747 --- tests/server/sockfilt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/server/sockfilt.c') diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 2fb947f15..10a16ef00 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -782,8 +782,9 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, wsa++; } else { + curl_socket_t socket = curlx_sitosk(fds); WSACloseEvent(wsaevent); - handle = (HANDLE) curlx_sitosk(fds); + handle = (HANDLE) socket; handle = select_ws_wait(handle, waitevent); handles[nfd] = handle; data[thd].thread = handle; -- cgit v1.2.3