]> granicus.if.org Git - curl/commitdiff
darwinssl: Fixed compilation warning
authorSteve Holme <steve_holme@hotmail.com>
Sun, 28 Dec 2014 21:29:26 +0000 (21:29 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 28 Dec 2014 23:32:07 +0000 (23:32 +0000)
vtls.c:683:43: warning: unused parameter 'data'

lib/vtls/curl_darwinssl.h

index bcb1c741d12ea45effd32860372513988c2d8b04..042c8da2d93acff2d653c572dd26d43bf17f4a91 100644 (file)
@@ -8,6 +8,7 @@
  *                             \___|\___/|_| \_\_____|
  *
  * Copyright (C) 2012 - 2014, Nick Zitzmann, <nickzman@gmail.com>.
+ * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -66,7 +67,7 @@ void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
 #define curlssl_version Curl_darwinssl_version
 #define curlssl_check_cxn Curl_darwinssl_check_cxn
 #define curlssl_data_pending(x,y) Curl_darwinssl_data_pending(x, y)
-#define curlssl_random(x,y,z) Curl_darwinssl_random(y,z)
+#define curlssl_random(x,y,z) ((void)x, Curl_darwinssl_random(y,z))
 #define curlssl_md5sum(a,b,c,d) Curl_darwinssl_md5sum(a,b,c,d)
 #define CURL_SSL_BACKEND CURLSSLBACKEND_DARWINSSL