mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
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
This commit is contained in:
parent
d5c0351055
commit
60776a0515
5 changed files with 12 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue