summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/transfer.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-13 14:45:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-13 14:45:30 (GMT)
commit68c3550faa5793a0445c457d65b2f491cee559df (patch)
treea70725db48ebdf08329f00868199aeb2880abb23 /Source/CTest/Curl/transfer.c
parent3f75f0ea1e0404951797c2918d93465b9c612ea0 (diff)
downloadCMake-68c3550faa5793a0445c457d65b2f491cee559df.zip
CMake-68c3550faa5793a0445c457d65b2f491cee559df.tar.gz
CMake-68c3550faa5793a0445c457d65b2f491cee559df.tar.bz2
COMP: Remove warnings on borland build
Diffstat (limited to 'Source/CTest/Curl/transfer.c')
-rw-r--r--Source/CTest/Curl/transfer.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/CTest/Curl/transfer.c b/Source/CTest/Curl/transfer.c
index c2a60fe..4a108cc 100644
--- a/Source/CTest/Curl/transfer.c
+++ b/Source/CTest/Curl/transfer.c
@@ -1163,6 +1163,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
k->keepon &= ~KEEP_WRITE; /* we're done writing */
FD_ZERO(&k->wkeepfd);
writedone = TRUE;
+ (void)writedone;
break;
}
@@ -1337,7 +1338,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
CURLcode Curl_readwrite_init(struct connectdata *conn)
{
- struct SessionHandle *data = conn->data;
+ struct SessionHandle *data;
struct Curl_transfer_keeper *k = &conn->keep;
/* NB: the content encoding software depends on this initialization of
@@ -1856,6 +1857,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
data->change.url = newurl;
newurl = NULL; /* don't free! */
+ (void)newurl;
infof(data, "Issue another request to this URL: '%s'\n", data->change.url);
@@ -1953,8 +1955,8 @@ static CURLcode
Curl_connect_host(struct SessionHandle *data,
struct connectdata **conn)
{
- CURLcode res = CURLE_OK;
- int urlchanged = FALSE;
+ CURLcode res;
+ int urlchanged;
do {
bool async;
@@ -2086,6 +2088,8 @@ CURLcode Curl_perform(struct SessionHandle *data)
/* Curl_do() failed, clean up left-overs in the done-call */
res2 = Curl_done(&conn, res);
+ (void)res2;
+
/*
* Important: 'conn' cannot be used here, since it may have been closed
* in 'Curl_done' or other functions.
@@ -2158,7 +2162,7 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */
*/
CURLcode Curl_pretransfersec(struct connectdata *conn)
{
- CURLcode status = CURLE_OK;
+ CURLcode status;
struct SessionHandle *data = conn->data;
struct connectdata *sec_conn = NULL; /* secondary connection */