summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-14 21:07:45 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-14 21:07:45 +0200
commit6c413648ec440230d2988be2d9ed8b70f8dba24b (patch)
tree24191282f5407047416aa697fd925dac7f771261 /lib
parent6afe70a00bb4018810d8f4417bc49b44a7998e46 (diff)
downloadcurl-6c413648ec440230d2988be2d9ed8b70f8dba24b.tar.gz
nonblock: fix unused parameter warning
If USE_BLOCKING_SOCKETS is defined, curlx_nonblock's arguments are not used.
Diffstat (limited to 'lib')
-rw-r--r--lib/nonblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c
index 5959281e5..4d105c1fe 100644
--- a/lib/nonblock.c
+++ b/lib/nonblock.c
@@ -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)