فهرست منبع

COMP: Remove warnings

Andy Cedilnik 20 سال پیش
والد
کامیت
d224858e1f
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      Utilities/cmxmlrpc/xmlrpc_curl_transport.c

+ 3 - 3
Utilities/cmxmlrpc/xmlrpc_curl_transport.c

@@ -463,6 +463,7 @@ performCurlTransaction(xmlrpc_env *      const envP,
 }
 
 
+#if defined(HAVE_PTHREADS)
 
 static void
 doAsyncRpc2(void * const arg) {
@@ -501,7 +502,6 @@ doAsyncRpc(void * arg) {
 #endif
 
 
-#if defined(HAVE_PTHREADS)
 static void
 createRpcThread(xmlrpc_env *              const envP,
                 rpc *                     const rpcP,
@@ -651,17 +651,17 @@ finishRpc(struct list_head * const headerP,
     rpc * const rpcP = headerP->itemP;
 
     if (rpcP->threadExists) {
+#if defined(HAVE_PTHREADS)
         void *status;
         int result;
 
-#if defined(HAVE_PTHREADS)
         result = pthread_join(rpcP->thread, &status);
+        (void)result;
 #else
         abort();
 #endif
         
         rpcP->threadExists = FALSE;
-        (void)result;
     }
 
     XMLRPC_MEMBLOCK_FREE(char, rpcP->responseXmlP);