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
1 changed files with 2 additions and 1 deletions

View File

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