diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-07-09 18:43:55 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-08-21 18:53:45 +0200 |
commit | 60776a0515c2a8f572902ad5bcc9f63eeaeafa84 (patch) | |
tree | 79eb46200916b3c1c4df98fca8c2cb79d2c87acc /tests/server | |
parent | d5c0351055d5709da8f3e16c91348092fdb481aa (diff) |
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
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sockfilt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |