summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 12:08:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 12:08:24 (GMT)
commit261359919c0cef39b147a819a47188d82d0c5044 (patch)
tree7c3eca2c3df28b29027a79c2901e0697846da621 /Source/CTest
parent0d431a1daa33d966a82831eeb970314541f40a75 (diff)
downloadCMake-261359919c0cef39b147a819a47188d82d0c5044.zip
CMake-261359919c0cef39b147a819a47188d82d0c5044.tar.gz
CMake-261359919c0cef39b147a819a47188d82d0c5044.tar.bz2
ERR: Remove some curl warnings
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/Testing/curltest.c2
-rw-r--r--Source/CTest/Curl/connect.c2
-rw-r--r--Source/CTest/Curl/getinfo.c2
-rw-r--r--Source/CTest/Curl/sendf.c2
-rw-r--r--Source/CTest/Curl/ssluse.c2
5 files changed, 9 insertions, 1 deletions
diff --git a/Source/CTest/Curl/Testing/curltest.c b/Source/CTest/Curl/Testing/curltest.c
index 1be0f19..5a63ef3 100644
--- a/Source/CTest/Curl/Testing/curltest.c
+++ b/Source/CTest/Curl/Testing/curltest.c
@@ -126,7 +126,7 @@ int GetWebFile(void)
return retVal;
}
-int main(int argc, char **argv)
+int main(/*int argc, char **argv*/)
{
int retVal = 0;
curl_global_init(CURL_GLOBAL_DEFAULT);
diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c
index 5aa9f8b..3ed65d9 100644
--- a/Source/CTest/Curl/connect.c
+++ b/Source/CTest/Curl/connect.c
@@ -141,6 +141,8 @@ int Curl_nonblock(int socket, /* operate on this */
#ifndef SETBLOCK
#error "no non-blocking method was found/used/set"
#endif
+ (void)socket;
+ (void)nonblock;
}
/*
diff --git a/Source/CTest/Curl/getinfo.c b/Source/CTest/Curl/getinfo.c
index f8a4a10..d044075 100644
--- a/Source/CTest/Curl/getinfo.c
+++ b/Source/CTest/Curl/getinfo.c
@@ -38,6 +38,8 @@
/* Make this the last #include */
#ifdef MALLOCDEBUG
#include "memdebug.h"
+#else
+#include <stdlib.h>
#endif
/*
diff --git a/Source/CTest/Curl/sendf.c b/Source/CTest/Curl/sendf.c
index 0eef961..9c9f14e 100644
--- a/Source/CTest/Curl/sendf.c
+++ b/Source/CTest/Curl/sendf.c
@@ -228,6 +228,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
ssize_t *written)
{
ssize_t bytes_written;
+ (void)conn;
#ifdef USE_SSLEAY
/* SSL_write() is said to return 'int' while write() and send() returns
@@ -342,6 +343,7 @@ int Curl_read(struct connectdata *conn,
{
ssize_t nread;
*n=0; /* reset amount to zero */
+ (void)conn;
#ifdef USE_SSLEAY
if (conn->ssl.use) {
diff --git a/Source/CTest/Curl/ssluse.c b/Source/CTest/Curl/ssluse.c
index 07dae8b..5049746 100644
--- a/Source/CTest/Curl/ssluse.c
+++ b/Source/CTest/Curl/ssluse.c
@@ -673,6 +673,7 @@ static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
#endif
/* ====================================================== */
+#ifdef USE_SSLEAY
static int
cert_hostcheck(const char *certname, const char *hostname)
{
@@ -709,6 +710,7 @@ cert_hostcheck(const char *certname, const char *hostname)
}
return 0;
}
+#endif
/* ====================================================== */
CURLcode