浏览代码

ERR: Remove warning on Sun

Bill Hoffman 22 年之前
父节点
当前提交
b9eed3ea18
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/CTest/Curl/connect.c

+ 2 - 2
Source/CTest/Curl/connect.c

@@ -135,6 +135,8 @@ int Curl_nonblock(int socket,    /* operate on this */
 #endif
 
 #ifdef HAVE_DISABLED_NONBLOCKING
+  (void)socket;
+  (void)nonblock;
   return 0; /* returns success */
 #define SETBLOCK 5
 #endif
@@ -142,8 +144,6 @@ int Curl_nonblock(int socket,    /* operate on this */
 #ifndef SETBLOCK
 #error "no non-blocking method was found/used/set"
 #endif
-  (void)socket;
-  (void)nonblock;
 }
 
 /*