1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00

nonblock: fix unused parameter warning

If USE_BLOCKING_SOCKETS is defined, curlx_nonblock's arguments are not
used.
This commit is contained in:
Marcel Raad 2018-10-14 21:07:45 +02:00
parent 6afe70a00b
commit 6c413648ec
No known key found for this signature in database
GPG Key ID: 07ADACB610D796DA

View File

@ -48,7 +48,8 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */
int nonblock /* TRUE or FALSE */) int nonblock /* TRUE or FALSE */)
{ {
#if defined(USE_BLOCKING_SOCKETS) #if defined(USE_BLOCKING_SOCKETS)
(void)sockfd;
(void)nonblock;
return 0; /* returns success */ return 0; /* returns success */
#elif defined(HAVE_FCNTL_O_NONBLOCK) #elif defined(HAVE_FCNTL_O_NONBLOCK)