mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 14:35: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:
parent
6afe70a00b
commit
6c413648ec
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user