瀏覽代碼

Fixed "unused parameter cloexec" warnings on windows

Nick Mathewson 10 年之前
父節點
當前提交
48a4ef3f6a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/common/compat.c

+ 4 - 0
src/common/compat.c

@@ -1092,6 +1092,8 @@ tor_open_socket_with_extensions(int domain, int type, int protocol,
       return TOR_INVALID_SOCKET;
     }
   }
+#else
+  (void)cloexec;
 #endif
 
   if (nonblock) {
@@ -1162,6 +1164,8 @@ tor_accept_socket_with_extensions(tor_socket_t sockfd, struct sockaddr *addr,
       return TOR_INVALID_SOCKET;
     }
   }
+#else
+  (void)cloexec;
 #endif
 
   if (nonblock) {