From: Marcel Raad Date: Sun, 14 Oct 2018 19:07:45 +0000 (+0200) Subject: nonblock: fix unused parameter warning X-Git-Tag: curl-7_62_0~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c413648ec440230d2988be2d9ed8b70f8dba24b;p=curl nonblock: fix unused parameter warning If USE_BLOCKING_SOCKETS is defined, curlx_nonblock's arguments are not used. --- 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)