]> granicus.if.org Git - curl/commitdiff
nonblock: fix unused parameter warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 14 Oct 2018 19:07:45 +0000 (21:07 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 14 Oct 2018 19:07:45 +0000 (21:07 +0200)
If USE_BLOCKING_SOCKETS is defined, curlx_nonblock's arguments are not
used.

lib/nonblock.c

index 5959281e54311c3a3ebefff166453336b02675d4..4d105c1fea8790b3386457fc876cf77aac34907a 100644 (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)